long blogs

进一步有进一步惊喜


  • Home
  • Archive
  • Tags
  •  

© 2025 long

Theme Typography by Makito

Proudly published with Hexo

github push 提示输入账户名和密码问题

Posted at 2020-03-06 笔记 git 

使用push命令的时候需要输入账户和密码问题

使用Http协议下载便可能会出现类似的问题,更改remote内容

1.去除现有的origin remote

git remote -v查看现有的remote

1
2
origin  https://github.com/long95288/Project.git (fetch)
origin https://github.com/long95288/Project.git (push)

git remote rm origin 去除当前的origin远端仓库

2.新建远端仓库

git remote add origin git@github.com:long95288/Project.git 添加远端仓库.
git push --set-upstream origin master设置上游的分支

Share 

 Previous post: cmd命令问题总结 Next post: Tij-IO-笔记 

© 2025 long

Theme Typography by Makito

Proudly published with Hexo