Add more git aliases, default branch main

This commit is contained in:
Sam W 2022-02-28 23:44:43 +00:00
parent ca45cf76ca
commit e20323fef8
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,8 @@
dc = "diff --cached"; dc = "diff --cached";
l = "log"; l = "log";
lp = "log --patch"; lp = "log --patch";
p = "push";
pf = "push --force-with-lease";
r = "rebase"; r = "rebase";
rc = "rebase --continue"; rc = "rebase --continue";
ra = "rebase --autostash"; ra = "rebase --autostash";
@ -34,6 +36,7 @@
branch.sort = "-committerdate"; branch.sort = "-committerdate";
log.showSignature = true; log.showSignature = true;
push.default = "current"; push.default = "current";
init.defaultBranch = "main";
}; };
includes = [ includes = [
{ path = "~/.gitconfig.local"; } { path = "~/.gitconfig.local"; }