1
0
Fork 0

Add nice git alias from hexa

This commit is contained in:
Malte Brandy 2020-11-22 02:05:11 +01:00
parent e47f90d705
commit 95e82ed17d
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -37,7 +37,10 @@
"${config.home.homeDirectory}/git/password-store";
};
git = {
aliases.sync = "!git pull -r && git push";
aliases = {
sync = "!git pull -r && git push";
cpr = "!f() { git fetch origin refs/pull/$1/head && git checkout FETCH_HEAD; }; f";
};
extraConfig.pull.ff = "only";
extraConfig.core.editor = "nvim";
enable = true;