2017-07-05 46 views
1

我正在學習Git。我在本地重命名了一個文件夾,現在無法將項目推送到GitHub。它在我推送時顯示此消息。如何在本地重命名文件夾後將項目推送到github

push -u origin master 
fatal: 'origin' does not appear to be a git repository 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

謝謝你的幫助。

+0

你是如何重命名文件夾的?你使用'git mv'還是隻使用普通的'mv'命令 –

+0

這聽起來像你的配置搞砸了,而不是重命名文件夾是罪魁禍首。 –

+0

@BasileStarynkevitch無論如何,我不會指望這個錯誤。 –

回答

0

git push -u origin master
有趣的是,git與文件夾名稱無關。它傳播整個內容。

+0

我不得不跑'git pull',我可以跑'git push'。 –

相關問題