Quantcast
Channel: Code Snippet – Tech.It.2.Me
Viewing all articles
Browse latest Browse all 14

Git How-To: Squash commits in one line

$
0
0

Adding this here in case I need to refer to it in the future.

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

Where ~3 means squashing last 3 commits into one.


Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles





Latest Images