Created
December 21, 2018 11:13
-
-
Save n1k0/c5081d3312bb6e4cd52cdc457000e9e6 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] | |
caca = commit -a -C HEAD --amend | |
changelog = "!f() { r=${1:-`git describe --tags --abbrev=0`..HEAD}; echo Changelog for $r; git log --reverse --no-merges --format='* %s' $r; }; f" | |
changes = diff --name-status | |
ci = commit | |
cia = commit --amend | |
ciaa = commit -a --amend | |
co = checkout | |
cp = cherry-pick | |
dic = diff --cached | |
diffstat = diff --stat | |
drop-last-commit = git reset HEAD^ --hard | |
last = diff HEAD^1 | |
lc = !git oneline ORIG_HEAD.. --stat --no-merges | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
mayday = git reset --hard origin/mybranch | |
oneline = log --pretty=oneline --abbrev-commit --graph | |
oops = commit --amend -a -C HEAD | |
pr = "!f() { git fetch origin refs/pull/$1/head:pr/$1; } ; f" | |
pr = pull --rebase | |
puhs = push | |
recent = ~/bin/git-recent | |
rush = push --dry-run | |
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git | |
sst = status -sb | |
st = status | |
undo = reset --soft HEAD^ | |
unstage = reset HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment