File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 106106 home . packages = [
107107 pkgs . git-absorb
108108 pkgs . tig
109- (
110- config . lib . custom . mkScript
111- "git-initial-commit"
112- ./git-initial-commit.sh
113- [ pkgs . coreutils pkgs . git ]
114- { }
115- )
116109 ] ;
117110
118111 programs . git = {
187180 branch-name = "branch --show-current" ;
188181 total-clean = externGitAlias "git co -f && git clean -dfx && git clean -dfX" ;
189182
183+ initial-commit = externGitAlias "git init && git commit --allow-empty --message 'chore: initial commit'" ;
190184 disable-upstream-push = "remote set-url upstream --push DISABLED" ;
185+ set-head = "remote set-head origin --auto" ;
191186 set-upstream = externGitAlias "git branch --set-upstream-to=origin/$(git branch-name) $(git branch-name)" ;
192187 default-branch = externGitAlias "git symbolic-ref refs/remotes/origin/HEAD | ${ pkgs . gnused } /bin/sed 's@^refs/remotes/origin/@@'" ;
193188 } ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments