Git麻烦推送到github存储库

时间:2017-03-23 09:39:17

标签: git github

我想将远程文件夹推送到Github(git@github.com:myProject/Myproject.git),我连接到远程服务器vis ssh然后输入我的git repo:

git add myFolder
git commit -m "add my folder"
git remote add origin git@github.com:myProject/Myproject.git
 >>fatal: remote origin already exists.
git push -u -f origin master
>>Password for 'https://anotheruser@bitbucket.org': 

我想我需要将远程文件夹从Bitbucket更改为github或者是什么?

0 个答案:

没有答案