Skip to content

Instantly share code, notes, and snippets.

@guelau
Last active November 14, 2018 10:46
Show Gist options
  • Save guelau/355f12183fffc75c3400 to your computer and use it in GitHub Desktop.
Save guelau/355f12183fffc75c3400 to your computer and use it in GitHub Desktop.
[user]
name = Laurent Guédon
email = laurent@privatemail.com
[alias]
amend = commit --amend
st = status
df = diff
co = checkout
ci = commit
br = branch
who = shortlog -sne
# condensed history
oneline = log --pretty=oneline --abbrev-commit --graph --decorate
changes = diff --name-status
# all change since the last pull
lc = !git oneline ORIG_HEAD.. --stat --no-merges
# edit all modified files with vim
edit = !vim `git diff --name-only`
# cancel the last commit and keep all modifications
undo = git reset --soft HEAD^
[core]
editor = vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment