Skip to content

Instantly share code, notes, and snippets.

@rendegosling
Last active October 31, 2020 06:17
Show Gist options
  • Save rendegosling/89bbb9d89e9c22a8c93aa530a8c9522a to your computer and use it in GitHub Desktop.
Save rendegosling/89bbb9d89e9c22a8c93aa530a8c9522a to your computer and use it in GitHub Desktop.
[alias]
co = checkout
ec = config --global -e
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
cob = checkout -b
cm = !git add -A && git commit -m
rb = !git pull --rebase
save = !git add -A && git commit -m 'SAVEPOINT'
wip = commit -am "WIP"
undo = reset HEAD~1 --mixed
amend = commit -a --amend
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
l = !git log --oneline
rbm = !git fetch && git rebase origin/master
cf = !git commit --fixup
ra = !git rebase -i --autosquash
db = !git branch -D
justclean = ! bash -c \"source ~/.bashrc && git_clean_untracked_safely\"
localprune = ! bash -c \"source ~/.bashrc && git_clean_local_branches\"
[user]
email = youremail.com
name = yourusername
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment