Git: Getting Started with Aliases
Git has very quickly become my tool-of-choice for source control. It’s quick, it’s easy and it’s bloody good at what it does. It allows me to completely forget about source control, not fear things like branching and merging and just get on with writing code . Git Aliases allow us to create shortcuts for common commands to make it even easier & quicker for us to use. In this post I cover creating simple aliases for common commands/scenarios (or at least those in my working day). WARNING! Dragons Be Here! We are going to be changing the Git configuration file! I strongly recommend you start with these by working on a fresh repository’s configuration file before adding the “--global” switch to apply changes across the board! By this, I mean: Go to a temp directory. Open up the Git bash/shell. Type “git init”. From this point on, all changes are to be made to this repository only by omitting the “--global” switch. I won’t even add it to the commands so you do...