Fix git main-branch once and for all
This commit is contained in:
parent
f190392692
commit
dde4ecfeb0
@ -7,7 +7,7 @@
|
|||||||
[alias]
|
[alias]
|
||||||
# main-branch outputs 'main' if there is a main branch, otherwise it outputs
|
# main-branch outputs 'main' if there is a main branch, otherwise it outputs
|
||||||
# 'master'
|
# 'master'
|
||||||
main-branch = "!if git rev-parse --verify main 2>&1 >/dev/null; then echo 'main'; else echo 'master'; fi"
|
main-branch = "!if git rev-parse --verify main >/dev/null 2>&1; then echo 'main'; else echo 'master'; fi"
|
||||||
|
|
||||||
#Shows diff in log
|
#Shows diff in log
|
||||||
ll = log --stat --abbrev-commit
|
ll = log --stat --abbrev-commit
|
||||||
|
Loading…
Reference in New Issue
Block a user