0

I used to do git amend in the following simple way git commit --amend. Recently I started using message from file option (-F), like so: git commit --amend -F my_git_message.txt.

My workflow includes git-review tool which I call after each commit: git review --reviewers user1 user2.

After I started using -F option when amending, seems like git-review started creating a new review, instead of amending the change to an old review. Why is this happening?

phd
  • 82,685
  • 13
  • 120
  • 165
Danijel
  • 8,198
  • 18
  • 69
  • 133
  • 1
    Because you will reset the change-id that's in the commit message. If you're not changing the commit message, use `git commit --amend --no-edit` instead to avoid that. – fredrik Mar 13 '19 at 12:45
  • 1
    Possible duplicate of [git push when commit --amend is done](https://stackoverflow.com/questions/21905670/git-push-when-commit-amend-is-done) – phd Mar 13 '19 at 14:57
  • https://stackoverflow.com/search?q=%5Bgerrit%5D+%5Bgit%5D+amend – phd Mar 13 '19 at 14:57

0 Answers0