squash the last N commits in git

GIT installation, quick reference manual and usage
fabiodelorenzo
Posts: 65
Joined: Thu Oct 03, 2013 5:54 pm

squash the last N commits in git

Postby fabiodelorenzo » Sat Apr 11, 2015 2:35 am

example, squash the last 3 commits in git:

git reset --soft HEAD~3
git commit --edit

Return to “Git”

Who is online

Users browsing this forum: No registered users and 0 guests