Git

Install git

Windows Linux MacOS
Windows git Linux git Mac OS git

If you have git installed, check that you are on the latest on, which is now (March 21st, 2019) 2.21.

Use the command:

git --version

Install Visual Studio Code

Download Links to all targets

Install git tools

Windows Linux MacOS
SourceTree for Windows - SourceTree for MacOS

You need valid Atlassian account (free) to install SourceTree, so create that before you start.

or

Windows Other platforms
GitKraken for Windows GitKraken, other plateforms

For Powershell users:

Install as module using:

Install-Module -Name posh-git -RequiredVersion 0.7.3  

If you already have an earlier version installed, you must use the -Force parameter to update to the new version

This command has to be run from an elevated command prompt.

“Provides prompt with Git status summary information and tab completion for Git commands, parameters, remotes and branch names.”

Information

For Visual Studio

Visual Studio git extension install

For Visual Studio Code

At the minimum, install Git Lens

IFix

Command line tool

Use the commands

Get the latest gitignore file:

IFix gitignore -r -f

Merge what you have with the latest gitignore

IFix gitignore -m -f

Visualizing the git tree

GitViz, Superb tool for learning how the git tree works with commits and branches. Use during learning phase, or for teaching others.

Download

Git aliases

In the beginning it can be wise to not use aliases for the git commands, to learn them “as is”. However, after some time using aliases can give you a real speed-up.

This post, (also see part 2) descibes how they work, and this is my set of git aliases.