Submitted by editor on Tue, 09/05/2017 - 16:57 Question How to merge two git commits into one ? This is an example to merge 2 last commits. 1. git rebase -i HEAD~2 2. Change pick to squash the commit you want to merge 3. Save and Exit 4. git push -f origin master Tags Shell Git Helpful git commands Make Correction on a git Add new comment Your name Subject Comment About text formats
Add new comment