You are not logged in.
My goal is to have a non-interactive git call that will:
1) rebase/fixup the last commit
2) retain the commit message of the 2nd to last commit.
To date, I have been doing this in a few steps.
1) Make my small change to the code and run git commit -am "small change"
2) git rebase -i HEAD~2 ... once in the editor change the 'pick' on the 2nd line to 'f'
I found a number of alternatives searching but non of them accomplish what I am after. Thanks.
Last edited by graysky (2021-11-22 07:24:33)
Offline
Why not `git commit --amend`?
Offline
Why not `git commit --amend`?
Specifically
git commit --amend --no-edithttps://riptutorial.com/git/example/122 … g-a-commit
https://git-scm.com/docs/git-commit#Doc … ---no-edit
As for rebase, use --autosquash for the rebse and --fixup=COMMITID or so for the second commit.
https://riptutorial.com/git/topic/598/squashing
https://git-scm.com/docs/git-commit#Doc … ltcommitgt
https://git-scm.com/docs/git-rebase
Last edited by progandy (2021-11-21 22:15:43)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
bulletmark wrote:Why not `git commit --amend`?
Specifically
git commit --amend --no-edit
Thanks guys... that did it.
Offline