Skip to content

Instantly share code, notes, and snippets.

View mctrl's full-sized avatar
🐙
multitasking

Martina mctrl

🐙
multitasking
View GitHub Profile
@mctrl
mctrl / gitconfig_alias
Last active October 29, 2021 09:50
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