alias
[!NOTE|label:references:]
basic
[alias]
aa = add --all
st = status -sb
sts = status
rb = rebase
co = checkout --force --recurse-submodules
cb = rev-parse --abbrev-ref HEAD
cl = clean -dffx
cn = clone --recurse-submodules --tags
cp = cherry-pick
wc = whatchanged
gca = gc --aggressive
fa = fetch --prune --prune-tags --force --all
ma = merge --all --progress
psa = push origin --all
pst = push origin --tags
root = rev-parse --show-toplevel
first = rev-list --max-parents=0 HEAD
last = cat-file commit HEAD
undo = reset HEAD~1 --mixed
### [c]onflict [f]ile
cf = "! bash -c 'grep --color=always -rnw \"^<<<<<<< HEAD$\"'"
# [c]onflict [f]ile [n]ame
cfn = diff --name-only --diff-filter=U --relative
# statistics
# get line changer statistic
impact = "!git ls-files -z \
| xargs -0n1 git blame -w \
| perl -n -e '/^.*?\\((.*?)\\s+[\\d]{4}/; print $1,\"\\n\"' \
| sort -f \
| uniq -c \
| sort -nr"pretty show
branch
commit and push
find alias
get Change-Ids
revision count
Last updated
Was this helpful?