Pull from Github using Git Shell on Windows

HoneyWine picture HoneyWine · Jul 31, 2014 · Viewed 8.2k times · Source

I'm a newbie, so this question might sound really stupid, but what's the command to pull from Git Hub using Git Shell on Windows? Thanks a lot. I did some research but I don't really understand.

This is what I typed in Git Shell:

git pull github.com/A/B.git

Answer

Anshul Goyal picture Anshul Goyal · Jul 31, 2014

Do a git clone https://github.com/user/repo.git, and then you can do a git pull from within the repo on subsequent runs.

Basically, before doing a pull, the repo has to exist locally and hence you must clone it first.