Created
October 5, 2009 02:33
-
-
Save olivergeorge/201809 to your computer and use it in GitHub Desktop.
My git tips and tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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