Answers for "squashing a commit"

3

squash commit history git

# THIS TURNS YOUR WHOLE COMMIT HISTORY INTO ONE SINGLE COMMIT!
# BE CAREFUL!

git rebase --root -i

# In your editor, for each commit except the top, change `pick` to `squash`
Posted by: Guest on August-23-2020
1

squash commits git

git reset --soft HEAD~3 &&
git commit
Posted by: Guest on May-02-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language