Skip to content

Instantly share code, notes, and snippets.

@miigotu
Last active September 14, 2015 10:00
Show Gist options
  • Save miigotu/6a86c6543f7e08c8522f to your computer and use it in GitHub Desktop.
Save miigotu/6a86c6543f7e08c8522f to your computer and use it in GitHub Desktop.
[user]
email = [email protected]
name = Dustyn Gibson
[core]
pager = less -+F -+X -q
[status]
short = true
branch = true
[alias]
newsr = "!f() { git fetch upstream && git checkout -b $1 upstream/develop; }; f"
syncsr = "!f() { CURBRANCH=`git rev-parse --abbrev-ref HEAD` && echo 'Fetching upstream...' && git fetch upstream && echo 'Syncing develop...' && git checkout -q develop && git reset --hard upstream/develop && echo 'Syncing master...' && git checkout -q master && git reset --hard upstream/master && git push origin -f && git checkout -q $CURBRANCH && echo 'On branch' $CURBRANCH; }; f"
[push]
default = matching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment