feat: update git's config

This commit is contained in:
Ryan Yin
2023-06-13 01:41:51 +08:00
parent 0024dff048
commit 0c5b01b5f0

View File

@@ -27,9 +27,9 @@
];
extraConfig = {
pull = {
rebase = true;
};
init.defaultBranch = "main";
push.autoSetupRemote = true;
pull.rebase = true;
# replace https with ssh
url = {
@@ -56,5 +56,22 @@
features = "side-by-side";
};
};
aliases = {
# common aliases
br = "branch";
co = "checkout";
st = "status";
ls = "log --pretty=format:\"%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn]\" --decorate";
ll = "log --pretty=format:\"%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn]\" --decorate --numstat";
cm = "commit -m";
ca = "commit -am";
dc = "diff --cached";
amend = "commit --amend -m";
# aliases for submodule
update = "submodule update --init --recursive";
foreach = "submodule foreach";
};
};
}