[git]rebase with autostash + helper to remove dir

This commit is contained in:
Mathieu Maret 2024-10-30 14:42:34 +01:00
parent 49e5d43111
commit 8fa5b4888b

View File

@ -78,11 +78,14 @@
blamef = blame -w -C -C -C
# Show the log having the modificatoin for $1
search =!sh -c "git log -S $1 -p"
# remove a folder from history
rmdirfromhistory=!sh -c "git-filter-repo --path $1 --invert-paths"
[rebase]
# when rebasing, update the other common branch too.
# See https://andrewlock.net/working-with-stacked-branches-in-git-is-easier-with-update-refs/
# Need git 2.38
updateRefs = true
autoStash = true
[branch]
sort = -committerdate
#New branch track remote
@ -133,7 +136,7 @@
# tool = vimdiff
# conflictstyle = diff3
[push]
default = current #push to upstreal assuming same name for the upstream and current branch
default = current #push to upstream assuming same name for the upstream and current branch
#default = upstream # pushed to the configuer upstream branch
[credential]
helper = cache --timeout=3600
@ -174,5 +177,5 @@
# start maintenance on a repo with git maintenance start
#repo = /home/mmaret/Sources/matos
[fetch]
#For large repo. Update the commit crash at each commit to have git log --graph super fast
#For large repo. Update the commit graph at each commit to have git log --graph super fast
#writeCommitGraph = true