aboutsummaryrefslogtreecommitdiff
path: root/base/gitconfig
diff options
context:
space:
mode:
Diffstat (limited to 'base/gitconfig')
-rw-r--r--base/gitconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/gitconfig b/base/gitconfig
index 3db3b5a..1461a1d 100644
--- a/base/gitconfig
+++ b/base/gitconfig
@@ -52,7 +52,8 @@
untracked = red
[alias]
- this = !bash -c 'git root &>/dev/null && echo "Already a git repository" || (git init && git add . && git commit -m \"Initial commit\")'
+ new = "!git init && git symbolic-ref HEAD refs/heads/main"
+ this = !bash -c 'git root &>/dev/null && echo "Already a git repository" || (git new && git add . && git commit -m \"Initial commit\")'
root = rev-parse --show-toplevel
cloner = clone --recursive
rv = remote -v