layout | title | category | permalink |
---|---|---|---|
page |
Git |
wiki |
gitinstallbasic |
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
Download Links to all targets
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 |
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."
Visual Studio git extension install
At the minimum, install Git Lens
Use the commands
Get the latest gitignore file:
IFix gitignore -r -f
Merge what you have with the latest gitignore
IFix gitignore -m -f
GitViz, Superb tool for learning how the git tree works with commits and branches. Use during learning phase, or for teaching others.
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.