Skip to content

Instantly share code, notes, and snippets.

@reidev275
Created December 19, 2014 14:57
Show Gist options
  • Save reidev275/ae107ee6a4409fd0027a to your computer and use it in GitHub Desktop.
Save reidev275/ae107ee6a4409fd0027a to your computer and use it in GitHub Desktop.
git aliases
[alias]
cm = !git add -A && git commit -m
co = checkout
cob = "!f() { git checkout ${2-develop} && git up && git checkout -b ${1}; }; f"
ec = config --global -e
undo = reset HEAD~1 --mixed
up = pull --rebase --prune
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment