-
Notifications
You must be signed in to change notification settings - Fork 1
/
git.nix
33 lines (33 loc) · 973 Bytes
/
git.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
programs = {
git = {
enable = true;
userName = "FaustXVI";
userEmail = "[email protected]";
signing = {
signByDefault = true;
key = "98AC52834768871837C022716E983A14A5221EE1";
};
aliases = {
co = "checkout";
ci = "commit";
st = "status";
br = "branch";
branch-clean = "!git branch --merged | grep -v master | xargs -n 1 git branch -d";
next = "!git checkout `git rev-list HEAD..demo-end | tail -1`";
};
extraConfig = {
push = {
default = "current";
};
pull = {
rebase = true;
};
core = {
excludesfile = "~/.gitignore_global";
pager = "cat";
};
};
};
};
}