git - Is there a way to squash a commits in already merged pull request? -


consider scenario:

  1. i working on local feature or defect branch created develop branch.
  2. then released changes multiple commits remote branch (as happens in pr review process).
  3. my pr approved team reviewing changes. forgot quash commits on remote , local branch , merged remote branch in develop branch.
  4. deleted local , remote branch.

now realized merged changes in develop without doing squash.

so there way me squash commits in develop branch after fact commits merged in develop branch ?

option 1: squash commits on remote develop branch.

option 2: since merged feature-branch before deleting it, should still have access commits. git revert on develop branch commit right before merge commit. checkout last commit did on feature-branch git checkout <commit reference>. run git rebase -i squash commits before merge feature-branch master.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -