git
This commit is contained in:
26
packages/git.nix
Normal file
26
packages/git.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ wrappers, pkgs }:
|
||||
let
|
||||
git = wrappers.wrapperModules.git.apply {
|
||||
inherit pkgs;
|
||||
settings = {
|
||||
alias = {
|
||||
co = "checkout";
|
||||
br = "branch";
|
||||
ci = "commit";
|
||||
cm = "commit -m";
|
||||
st = "status -s";
|
||||
amend = "commit --amend";
|
||||
unstage = "reset HEAD --";
|
||||
last = "log -1 HEAD";
|
||||
diffs = "diff --staged";
|
||||
pushf = "push --force-with-lease";
|
||||
logs = "log --pretty=oneline";
|
||||
};
|
||||
pull.ff = "only";
|
||||
rebase.autoStash = true;
|
||||
merge.autoStash = true;
|
||||
push.autoSetupRemote = true;
|
||||
};
|
||||
};
|
||||
in
|
||||
git.wrapper
|
||||
Reference in New Issue
Block a user