How to commit existing changes to a new git branch

Photo by James Yarema on Unsplash

I assume if you're here you are trying to learn or to remember how to do something, so, the golden rule before you proceed is: do a backup.

If you're not familiar with some Git concepts it's really very easy to mess up with thing and lose work. We don't want that!

In your terminal, because I know you have one, type the line below: