0
我試圖按照這些指示,但它的失敗在最後一步爲什麼我的git遠程倉庫試圖從/ home/git目錄推/拉?
混帳的全局設置:
git config --global user.name "Swaroop"<br/>
git config --global user.email "[email protected]"
創建存儲庫
mkdir project-1
cd project-1
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin [email protected]:uname/project-1.git
git push -u origin master
但它失敗
± |master ✓| → git push -u origin master
fatal: '/home/git/repositories/uname/project-1.git' does not appear to be a git repository
fatal: Could not read from remote repository.
爲什麼git會查找當地的「/ home/git 「當我明確添加遠程原點的文件夾?