-2

I opened pull request and I had several commits on it. Can I will combine several commits on one on opened pull request before my teem lead will merged on master branch.

ts-alan
  • 27
  • 1
  • 2

1 Answers1

0

While on your PR branch locally:

  1. Squash the last n commits (replacing n with a number)

    git reset --soft HEAD~n
    git commit
    

    Squash my last X commits together using Git

  2. Push this back to your branch, which will require force since history is rewritten.

    git push --force-with-lease
    
grg
  • 5,023
  • 3
  • 34
  • 50