-2

To edit pull requests while keeping the number of commits the same, I've been adding new commits and rebasing/squashing them, but I was recently told that you can just amend commits and achieve the same thing...how might I do this?

I've only been able to find stuff on how to change the commit message, not update the commit itself

James Ronald
  • 685
  • 1
  • 6
  • 13

1 Answers1

1

When you git add file you then git commit --amend It should work. This seems to be very good documentation: amend

kowsky
  • 12,647
  • 2
  • 28
  • 41
abelgana
  • 312
  • 2
  • 6