我做git push
時遇到這個錯誤https://stackoverflow.com/a/20884273/45603撤消「混帳遠程RM起源」
谷歌使我這個帖子:https://stackoverflow.com/a/20871910/45603
所以,我跑了之後git remote add origin '[email protected]:username/repo.git'
現在git remote rm origin
我收到以下消息時,我做了git push
:
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
我想撤消git remote rm origin
和回滾與git 1.8.4。
如何恢復git remote rm origin
?
編輯:運行git push --set-upstream origin master
(由混帳作爲決定)給了我以下錯誤:
ssh: connect to host usts.visualstudio.com port 22: Bad file number
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
可能重複[Git SSH錯誤:「連接到主機:錯誤的文件編號」](http://stackoverflow.com/questions/7144811/git-ssh-error-connect-to-host-bad-file-號碼) –