[ADD][GIT] Alias to fixup last commit on file

This commit is contained in:
Bruno BELANYI 2020-07-08 13:53:36 +02:00
parent 77784d8219
commit 6296ba2187

View file

@ -71,6 +71,7 @@
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
push-new = "!git push -u \"${1:-origin}\" \"$(git branch | grep '^* ' | cut -f2- -d' ')\""
fixup = "!f() { git add -- \"$1\"; git commit --fixup \"$(git log -n 1 --pretty=format:%H -- \"$1\")\"; }; f"
[filter "lfs"]
clean = git-lfs clean -- %f