By editor, 5 September, 2017 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 Comments You must have JavaScript enabled to use this form. Your name Subject Comment About text formats Plain text No HTML tags allowed. Lines and paragraphs break automatically. Web page addresses and email addresses turn into links automatically.
Comments