Tuesday, March 17, 2015

Git: Sync remote repository w/ local

From http://stackoverflow.com/questions/6373277/git-sync-local-repo-with-remote-one
cd $HOME/src
git pull -p
NB: git pull runs git fetch with the given parameters and calls git merge to merge the retrieved branch heads into the current branch - git-scm.com/docs/git-pull

-p, --prune After fetching, remove any remote-tracking branches which no longer exist on the remote