Last active
April 13, 2017 12:24
-
-
Save ciases/30d137018d22583ffdb0c0da4b7c1b30 to your computer and use it in GitHub Desktop.
Human Git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
unstage = reset -q HEAD -- | |
discard = checkout -- | |
nevermind = !git reset --hard HEAD && git clean -d -f | |
uncommit = reset --mixed HEAD~ | |
save = commit -m | |
resave = commit --amend | |
invert = revert | |
last = log -1 HEAD --format=format:"%Cred%H" | |
summary = status -u -s | |
graph = log --graph -10 --branches --remotes --tags --format=format:'%Cgreen%h %Creset• %<(75,trunc)%s (%cN, %ar) %Cred%d' --date-order | |
history = log -10 --format=format:'%Cgreen%h %Creset• %s (%cN, %ar)' | |
branchout = checkout -b | |
new-branch = checkout -b | |
tags = tag | |
branches = branch -a | |
stashes = stash list | |
remotes = remote -v | |
prestage = diff -w --word-diff=color | |
precommit = diff --cached -w --word-diff=color --word-diff-regex='[^[:space:]<>]+' | |
move = mv | |
remove = rm | |
unmerged = branch --no-merged | |
unstash = stash pop | |
what = show -w | |
untrack = rm -r --cached | |
rewrite = rebase -i | |
amend = commit --amend | |
back = checkout "-" | |
contributors = shortlog -s -n --no-merges | |
filetrail = log --follow -p -w | |
mergetrail = log --ancestry-path --merges | |
zip-changed-files = "!f() { git diff --name-only \"$1\" \"$2\" > list.txt; zip update -@ < list.txt; rm list.txt; }; f" | |
delete-last-local-commit = reset --soft HEAD~1 | |
delete-local-branch = branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment