Last active
January 6, 2020 23:27
-
-
Save chitchu/23f39d86f7d41ffa79c14909f745f4a0 to your computer and use it in GitHub Desktop.
This file contains 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] | |
patch = add -p | |
amend = commit --amend --no-edit --date=now | |
ls = log --pretty=format:\"%C(yellow)%h\\\\ %ad%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn]\" --decorate --date=relative --max-count 20 | |
ld = log --pretty=format:\"%C(yellow)%h\\\\ %ad%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn]\" --decorate --date=relative | |
f = !git ls-files | grep -i | |
st = status -s | |
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi" | |
rebr = !git rebase -i `git merge-base master HEAD` | |
rebr-from = "!rb() { git rebase -i `git merge-base "$1^" HEAD`; }; rb" | |
mbase = "!mb() { git merge-base "$1^" HEAD; }; mb" | |
branch-name = "!git rev-parse --abbrev-ref HEAD" | |
pub = !git push -u origin $(git branch-name) | |
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort | |
branches = !git for-each-ref --sort=-committerdate refs/heads/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment