Skip to content

Instantly share code, notes, and snippets.

@olivergeorge
Created October 5, 2009 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olivergeorge/201809 to your computer and use it in GitHub Desktop.
Save olivergeorge/201809 to your computer and use it in GitHub Desktop.
My git tips and tricks
# SETUP A LOCAL COPY OF A REMOTE BRANCH
# From: the github branch called "foo-qa"
# To: local branch called "qa"
go -t -b qa origin/foo-qa
# REMOTE PUSH
# From: local branch called "qa"
# To: the github branch called "foo-qa"
git push origin qa:foo-qa
# GLOBAL EXCLUDES FILE
git config --global core.excludesfile ~/.gitignore
# TELL YOUR LOCAL REPOSITORY TO FETCH SUBMODULES
git submodule init
git submodule update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment