Improve git workflow: enable fsmonitor and untrackedCache, add watchman,
improve some git aliases
This commit is contained in:
parent
48ed428fd6
commit
25d56990cd
3 changed files with 13 additions and 2 deletions
|
|
@ -5,6 +5,8 @@
|
||||||
compression = 9
|
compression = 9
|
||||||
whitespace = error
|
whitespace = error
|
||||||
preloadindex = true
|
preloadindex = true
|
||||||
|
fsmonitor = true
|
||||||
|
untrackedCache = true
|
||||||
|
|
||||||
[status]
|
[status]
|
||||||
branch = true
|
branch = true
|
||||||
|
|
@ -38,6 +40,10 @@
|
||||||
[rebase]
|
[rebase]
|
||||||
autoStash = true
|
autoStash = true
|
||||||
missingCommitsCheck = true
|
missingCommitsCheck = true
|
||||||
|
autosquash = true
|
||||||
|
|
||||||
|
[merge]
|
||||||
|
ff = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
abbrevCommit = true
|
abbrevCommit = true
|
||||||
|
|
|
||||||
|
|
@ -129,6 +129,7 @@ in
|
||||||
rainfrog
|
rainfrog
|
||||||
atac
|
atac
|
||||||
p7zip
|
p7zip
|
||||||
|
watchman
|
||||||
];
|
];
|
||||||
|
|
||||||
file = utils.mk_symlinks { inherit config dotfiles; };
|
file = utils.mk_symlinks { inherit config dotfiles; };
|
||||||
|
|
|
||||||
|
|
@ -135,11 +135,12 @@ alias gsu="git submodule update --init --recursive --force"
|
||||||
alias gc="git commit --verbose --template=$HOME/.config/git/commit-template.txt"
|
alias gc="git commit --verbose --template=$HOME/.config/git/commit-template.txt"
|
||||||
alias gp="git push"
|
alias gp="git push"
|
||||||
alias gu="git pull"
|
alias gu="git pull"
|
||||||
|
alias gf="git fetch"
|
||||||
alias gsw="git switch"
|
alias gsw="git switch"
|
||||||
alias gswc="git switch --create"
|
alias gswc="git switch --create"
|
||||||
alias gb="git branch"
|
alias gb="git branch"
|
||||||
alias gr="git restore --staged"
|
alias grs="git restore --staged" # git restore staged
|
||||||
alias gre="git restore"
|
alias grw="git restore" # git restore working
|
||||||
alias ga="git add"
|
alias ga="git add"
|
||||||
alias gap="git add --patch"
|
alias gap="git add --patch"
|
||||||
alias gi="git init"
|
alias gi="git init"
|
||||||
|
|
@ -148,6 +149,9 @@ alias gd="git diff --output-indicator-new=' ' --output-indicator-old=' '"
|
||||||
alias gds="git diff --staged --output-indicator-new=' ' --output-indicator-old=' '"
|
alias gds="git diff --staged --output-indicator-new=' ' --output-indicator-old=' '"
|
||||||
alias gl="git log --all --graph --pretty=format:'%C(magenta)%h %C(white) %an %ar%C(auto) %D%n%s%n'"
|
alias gl="git log --all --graph --pretty=format:'%C(magenta)%h %C(white) %an %ar%C(auto) %D%n%s%n'"
|
||||||
alias gm="git merge"
|
alias gm="git merge"
|
||||||
|
alias gr="git rebase"
|
||||||
|
alias grc="git rebase --continue"
|
||||||
|
alias gri="git rebase --interactive"
|
||||||
|
|
||||||
# Alias functions
|
# Alias functions
|
||||||
vif() {
|
vif() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue