What's the difference between edit
and reword
when you do a git rebase?
I'm going through some docs which say this:
Replace pick with: - edit to mark a commit for amending. - reword to change the log message.
The interactive rebase gives you a script that it's going to run. It will start at the commit you specify on the command line ( HEAD~3 ) and replay the changes introduced in each of these commits from top to bottom. It lists the oldest at the top, rather than the newest, because that's the first one it will replay.
To modify older or multiple commits, you can use git rebase to combine a sequence of commits into a new base commit. In standard mode, git rebase allows you to literally rewrite history — automatically applying commits in your current working branch to the passed branch head.
reference : The git-rebase documentation says this:
edit
will pause the rebase entirely, allowing you to change files in the commit and/or the commit message.
reword
will simply open an editor to let you change the commit message only.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With