diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-11-23 16:37:55 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-11-23 16:37:55 +0800 |
| commit | c207ac077570240bed7d0eb2025178e12c8fd55a (patch) | |
| tree | d7456a3f089cedfcc6659a2ef073a938905ec979 /dot-config/fish/conf.d/git.abbr.fish | |
| parent | 33d9ab481109338ba4deca6c7a445875b33b1e59 (diff) | |
bump: fish
Diffstat (limited to 'dot-config/fish/conf.d/git.abbr.fish')
| -rw-r--r-- | dot-config/fish/conf.d/git.abbr.fish | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/dot-config/fish/conf.d/git.abbr.fish b/dot-config/fish/conf.d/git.abbr.fish index c267e7d4..d793d22b 100644 --- a/dot-config/fish/conf.d/git.abbr.fish +++ b/dot-config/fish/conf.d/git.abbr.fish @@ -53,7 +53,14 @@ end # alias push="git push" abbr -a git-rm "git ls-files --deleted -z | xargs -0 git rm" # alias g=git -#alias ga='git add' +# alias ga='git add' +function ga + if test (count $argv) -gt 0 + git add -f $argv + else + git add -A + end +end # alias gaa='git add --all' # alias gam='git am' # alias gama='git am --abort' @@ -258,3 +265,7 @@ end # alias ghpr='gh pr' # alias ghis='gh issue' abbr -a bisectundo 'git bisect log | head -n -2 > /tmp/fixed_bisect.log ; git bisect replay /tmp/fixed_bisect.log' +function gf + git commit --fixup=$argv + git rebase -i --autosquash $argv^ +end |
