git報錯如下:
fatal: 'origen' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
開始以為是權限的問題,然后就更改了所有的config,可是仍然不行,后來通過設置origin解決(原來clone來的遠程庫需要正確設置origin)
命令:$ git remote add origin git@github.com:isuifeng(github帳號名)/gitdemo(項目名).git
然后再次$ git push origin master 成功
(主要錯誤是因為我將origin誤寫成了origen)