我在本地使用C:\Users\my\Documents\GitHub作为我的GitHub仓库,而C:\wamp\www是我在Wampserver上本地开发项目的地方。
针对这两个仓库,应该怎样进行适当的设置?我是否需要告诉Git将'www'作为我的本地仓库?那样会把localhost和GitHub结合起来吗?
针对这两个仓库,应该怎样进行适当的设置?我是否需要告诉Git将'www'作为我的本地仓库?那样会把localhost和GitHub结合起来吗?
be in the Github folder, but mention that the working tree is www
cd C:\Users\my\Documents\GitHub
git --work-tree=C:\wamp\www status
or be in the www folder and mention that the git repo is in the Github one
cd C:\wamp\www status
git --git-dir=C:\Users\my\Documents\GitHub\.git
cd C:\wamp\www status
git add remote origin C:\Users\my\Documents\GitHub
git pull origin master