当我将新项目添加到存储库时,我收到此错误。
Error - fatal: '/Users/username/Downloads/folder_name' is outside repository.
我想,我需要给出当前的工作目录。但是,不知道该怎么做..有人可以帮我解决这个问题吗?但是当我直接添加新文件时,它工作正常..非常感谢您的帮助..提前致谢。
我一切都很好..但是如果我刷新页面,它仍然是一样的...... https://github.com/dinesh-prodapt/myandroid.git
这就是为什么困惑..这就是我得到的..
Dinesh-iMac:~ dineshkumar$ git remote add origin git@github.com:dinesh-prodapt/myandroid.git
fatal: remote origin already exists.
Dinesh-iMac:~ dineshkumar$ git push -u origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 280 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 0 (delta 0)
To git@github.com:dinesh-prodapt/dinesh.git
c6537f0..433adae master -> master
Branch master set up to track remote branch master from origin.
Dinesh-iMac:~ dineshkumar$ git remote add origin git@github.com:dinesh-prodapt/myandroid.git
fatal: remote origin already exists.
Dinesh-iMac:~ dineshkumar$ git push -u origin master
Branch master set up to track remote branch master from origin.
Everything up-to-date