Skip to content

Instantly share code, notes, and snippets.

@nitecoder
Last active August 29, 2015 14:08
Show Gist options
  • Save nitecoder/97e988af88b9b058e5e8 to your computer and use it in GitHub Desktop.
Save nitecoder/97e988af88b9b058e5e8 to your computer and use it in GitHub Desktop.
Git Goodies
# This creates upstream branches for all breanches in original repo
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY
# Don't we need to do fetch?
# In branch to merge
git checkout develop
git merge upstream/develop
See http://stackoverflow.com/a/2016954/1713948
git config --global alias.ahead "log origin/master..HEAD --oneline"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment