Viktor Klymentiev
@yondertype
A software developer, formerly startups co-founder & CTO
6 posts
Git & GitHub

In Git, how to squash commits?

First, let's find out how many commits need to be squashed into one. This command will show you what commits you have added compared to the master branch:

In Git, how to change the default editor?

As you know, for many specific operations git opens a text editor. On macOS and Linux, this is Vim by default. Not the most beginner-friendly editor I'd say. To make you comfortable, set your favorite editor as the git editor with just one command: