Combining multiple commits before pushing in Git
Based on my understanding, if I use git rebase -i master
, then later I still need to git push origin
Means that if you have a V2 and a V3 (Version 2 and Version 3 respectively), you can modify the V2 and with rebase
it will put the changes in a new version (V4) but merging with V3 (it doesn't matter that is a newer version of it) here is the link where you can see it more explained.
https://git-scm.com/docs/git-rebase