summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authormediocregopher <mediocregopher@gmail.com>2023-08-15 18:42:49 +0200
committermediocregopher <mediocregopher@gmail.com>2023-08-15 18:42:49 +0200
commitf19039269260c61cd6471b8a4341764ce48dc96d (patch)
treea007b135f040ba6e2ac3ac8980db25dd6fa56dc8 /base
parent8af64936804d4493022385980212aaae73197ab0 (diff)
Fix typo in main-branch git alias
Diffstat (limited to 'base')
-rw-r--r--base/gitconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gitconfig b/base/gitconfig
index 90bcbf8..b4cd420 100644
--- a/base/gitconfig
+++ b/base/gitconfig
@@ -7,7 +7,7 @@
[alias]
# main-branch outputs 'main' if there is a main branch, otherwise it outputs
# '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 2>&1 >/dev/null; then echo 'main'; else echo 'master'; fi"
#Shows diff in log
ll = log --stat --abbrev-commit