我在码云上创了一个仓库,然后把仓库克隆到 本地以后,在这个仓库上新建了一个 vue 的项目,然后想着把项目在更新到码云上,但是死活更新不上去,有没有大佬知道什么问题啊
仓库地址
https://gitee.com/l1035118279...
配置源后,显示已经配置
然后push到仓库的时候,又显示找不到仓库,我就无语了
有没有大佬知道什么问题!!
顺便有git靠谱教程的话,发一下,百度上五花八门,练的时候没几个靠谱的。
我在码云上创了一个仓库,然后把仓库克隆到 本地以后,在这个仓库上新建了一个 vue 的项目,然后想着把项目在更新到码云上,但是死活更新不上去,有没有大佬知道什么问题啊
仓库地址
https://gitee.com/l1035118279...
配置源后,显示已经配置
然后push到仓库的时候,又显示找不到仓库,我就无语了
有没有大佬知道什么问题!!
顺便有git靠谱教程的话,发一下,百度上五花八门,练的时候没几个靠谱的。
码云
1.配置git(连续三次回车,同一电脑下同一账号只需首次配置)
ssh-keygen -t rsa -C "yourEmail"
2.查看公钥(任何时候,确定是否有公钥)
cat ~/.ssh/id_rsa.pub
3.验证是否成功(github或码云,连接确认yes/no)
ssh -T git@github.com
ssh -T git@git.oschina.net
4.配置信息(用户名和邮箱全局配置一次)
git config --global user.name "yourname"
git config --global user.email "youremail"
git config --list
为单一项目配置
git config user.name "yourname"
git config user.email "youremail"
git config --list
5.远程加载项目(ssh key)
git remote add origin ssh
git checkout ssh
git remote add origin ssh
git clone ssh
6.拉取和推送
git pull origin master
git push origin master
7.提交和解决merge
git add .
git commit -m "fixed conflicts"
git push origin master
2 回答1.4k 阅读✓ 已解决
1 回答1.7k 阅读✓ 已解决
1 回答718 阅读✓ 已解决
2 回答903 阅读✓ 已解决
1 回答880 阅读
1 回答687 阅读
505 阅读
git remote
你的这个 origin 已经存在了,但是不是你想用的那个。
可以删掉重新加: