Git: Difference between revisions
imported>Nix m add Software/Applications subcategory |
imported>Kindrobot Add information about adding git aliases |
||
Line 24: | Line 24: | ||
userName = "John Doe"; | userName = "John Doe"; | ||
userEmail = "johndoe@example.com"; | userEmail = "johndoe@example.com"; | ||
}; | |||
</syntaxhighlight> | |||
Aliases can be added with: | |||
<syntaxhighlight lang="nix"> | |||
programs.git = { | |||
enable = true; | |||
aliases = { | |||
ci = "commit"; | |||
co = "checkout"; | |||
s = "status"; | |||
}; | |||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> |