Ive been asked to squash the commits on my pull request on github. When i run
git rebase -i HEAD~5
It looks like this
pick bcbb30d My commit comment
pick 8564706 Other persons commit comment
pick c99bdd2 Other persons commit comment
pick 07bb5b9 Other persons commit comment
pick 2bcff6f Other persons commit comment
pick 77a5076 My commit comment
As I only want to squash MY commits, is it ok to put 'squash' against all of mine but one (leaving it as 'pick') and have the other people's commits left as 'pick' too? Will this only squash my commits?
-f). And this is specially problematically if you are not working alone (and other persons already had the history you changed).