mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-10 06:32:42 +02:00
feat: update git's config
This commit is contained in:
+20
-3
@@ -27,9 +27,9 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
pull = {
|
init.defaultBranch = "main";
|
||||||
rebase = true;
|
push.autoSetupRemote = true;
|
||||||
};
|
pull.rebase = true;
|
||||||
|
|
||||||
# replace https with ssh
|
# replace https with ssh
|
||||||
url = {
|
url = {
|
||||||
@@ -56,5 +56,22 @@
|
|||||||
features = "side-by-side";
|
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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user