Re: [petsc-dev] Commit squashing in MR
2 Mar
2021
2 Mar
'21
9:36 p.m.
On Wed, 3 Mar 2021, Blaise A Bourdin wrote:
Hi,
This is not technically a petsc question. It would be great to have a short section in the PETSc integration workflow document explaining how to squash commits in a MR for git-impaired developers like me.
Anybody wants to pitch in, or explain me how to do this?
To squash commits - I use the 'squash' action in 'git rebase -i HASH' and figure out the HASH to use from 'gitk main..branch' [as git rebase requires the commit prior to the first commit of interest] git provides many ways of modifying the branch (and the rebase topic is very generic) so I think its best to rely on proper git docs/tutorials [and its not really specific to petsc workflow] Satish
Regards, Blaise
1987
Age (days ago)
1987
Last active (days ago)
0 comments
1 participants
participants (1)
-
Satish Balay