How to sync the local folder with the Git Repository on NitrousIO

左心房为你撑大大i 提交于 2019-12-06 15:58:37
VonC

If you just did a git init ., the local git repo is empty and has no index for you to checkout.

You would need to add a remote repo url

git remote add origin /url/to/remote/repo
git fetch
git checkout master origin/master (or) git checkout master && git reset --hard origin/master

That would give you the content of the remote repo in your local repo history and working tree.

Note - Before following the steps, please ensure to have the empty folder then start with git init . and other steps mentioned above

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!