Skip to content

Instantly share code, notes, and snippets.

@ranran2121
ranran2121 / gitconfig_alias
Created October 29, 2021 09:50 — forked from mctrl/gitconfig_alias
a collection of all the alias I find interesting or useful to remember in git
alias = config --get-regexp alias
bisectstop = bisect reset
branchamendhistory = filter branch
branchcommitid = "!f() { git branch --contains $id; }; f"
branchcreate = checkout -b
branchdelete = branch -d
branchesshow = branch --all --verbose
branchwithfile = "!f() { git log --all --format=%H $name | while read f; do git branch --contains $f; done | sort -u; }; f"
c = commit -m
ca = commit -au -m