Initial Commit
This commit is contained in:
commit
d18f18fc29
28 changed files with 1415 additions and 0 deletions
32
common/git.nix
Normal file
32
common/git.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{...}: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
userName = "foehammer127";
|
||||
userEmail = "foehammer@disroot.org";
|
||||
|
||||
signing = {
|
||||
key = "A972C2063F4F2554";
|
||||
signByDefault = true;
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
init = {defaultBranch = "main";};
|
||||
pull = {rebase = true;};
|
||||
rebase = {verify = false;};
|
||||
};
|
||||
|
||||
# Git aliases to use
|
||||
aliases = {
|
||||
c = "commit";
|
||||
cc = "commit";
|
||||
co = "checkout";
|
||||
cb = "checkout -b";
|
||||
aa = "add -A";
|
||||
a = "add";
|
||||
ca = "commit --amend";
|
||||
l = "log";
|
||||
lo = "log --oneline";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue