Home > Uncategorized > Useful GIT Commands

Useful GIT Commands

September 14th, 2014 Leave a comment Go to comments

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 Tags:
  1. No comments yet.
  1. No trackbacks yet.