improved git flow

This commit is contained in:
Morten Olsen
2025-12-29 21:24:37 +01:00
parent 225b91b5d6
commit 7eb837a068

View File

@@ -249,7 +249,6 @@ in
# Stage all and amend to last commit # Stage all and amend to last commit
fix = "!git add . && git commit --amend --no-edit"; fix = "!git add . && git commit --amend --no-edit";
# Stage all, amend, rebase, and force push with lease # Stage all, amend, rebase, and force push with lease
sync = "!f() { git add . && git commit --amend --no-edit && git rebase origin/$(git rev-parse --abbrev-ref HEAD) && git push --force-with-lease; }; f";
fck = "!f() { git add . && git commit --amend --no-edit && git rebase origin/$(git rev-parse --abbrev-ref HEAD) && git push --force-with-lease; }; f"; fck = "!f() { git add . && git commit --amend --no-edit && git rebase origin/$(git rev-parse --abbrev-ref HEAD) && git push --force-with-lease; }; f";
# Stage all, commit with message, and push # Stage all, commit with message, and push
save = "!f() { git add --all && git commit -m \"$*\" && git push; }; f"; save = "!f() { git add --all && git commit -m \"$*\" && git push; }; f";