This post is the continuation (aka part 2) of a previous post about ways to do common tasks using terminal Git. You can either check the previous one for context or start from here if you don't want to review the basics. Hello in this post we'll be looking at some "advanced" features on terminal Git to deal with file changes, branches and commit hand.
Table of contents
Signing commitsAvailable options on git resetRecovering from a hard resetAdding files, rewording messages, merging changes and more with just one commandAutomating the rebase process with 'autosquash'Force pushing to the remote with cautionSaving time on repetitive stuff using aliases. Once you get used to a certain git workflow that gets repeated several times a day, you can optimize it using aliases in Git.Sort: