Last active
February 28, 2019 15:29
-
-
Save afarriaga/28ef46b505120574b0d63210af01b0a0 to your computer and use it in GitHub Desktop.
Git aliases
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] | |
aliases = config --get-regexp alias | |
c = commit | |
co = checkout | |
st = status --short --branch | |
adp = add -p | |
com = commit -m | |
pro = pull --rebase origin | |
amend = commit --amend | |
branchout = checkout -b origin | |
diffc = diff --cached | |
discard = checkout | |
distclean = "clean -dxfi" | |
graph = log --graph -10 --format=format:'%Cgreen%h %Creset• %<(75,trunc)%s (%cN, %ar) %Cblue%d' --date-order | |
history = log -20 --format=format:'%Cgreen%h %Creset• %s (%cN, %ar)' | |
latest = log -n 10 --first-parent --oneline | |
merge-noff = merge --no-ff | |
nevermind = !git reset --hard HEAD && git clean -d -f | |
prestage = diff -w --word-diff=color | |
precommit = diff --cached --diff-algorithm=minimal -w | |
remotes = remote -v | |
stashes = stash list | |
stash-apply = "!f() { git stash apply stash^{/$*}; }; f" | |
stash-show = "!f() { git stash show stash^{/$*} -p; }; f" | |
undo = reset HEAD~1 | |
uncommit = reset HEAD~ | |
unstage = reset HEAD | |
unmerged = diff --name-only --diff-filter=U | |
unstash = stash pop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment