Useful GIT Commands
Clone a “bare” Repository
This command is useful to setup an intermediate repository to develop against instead of developing directly against github:
git clone --bare [remote github repo] [local repo]
Push all your branches in the “bare” repo to the github remote
This will push all your branches to the remote, and set-upstream tracking correctly for you:
git push --all -u
Categories: Uncategorized