GIT Instructions and Implementation
GIT is a distributed version control system for managing source code changes. It enables handling different code versions and maintaining historical information.
Installation
To start using GIT, it must first be installed on the computer.
- GIT installation instructions
- After installation, add GIT to the PATH (usually added automatically)
Windows Installation and Tips
After installation on Windows machines, you should execute:
PS C:\Users\me> git config --global core.sshCommand "'C:\Windows\System32\OpenSSH\ssh.exe'"
This allows Git to use OpenSSH installed as a Windows feature instead of its own.
If you do development work on this machine, you should specify your name and email in GIT as follows:
PS C:\Users\me> git config --global user.name "Meikä Läinen"
PS C:\Users\me> git config --global user.email "email@example.com"
Usage
Once GIT is installed and added to the PATH, it can be used directly from the command line (e.g., CMD, Bash, PowerShell).
- A cheat sheet for GIT commands can be found here
Alternatively, GIT can also be used with graphical tools.
- List of downloadable graphical tools
- Some of the above, which lack official Linus support like Github Desktop, have unofficial versions for Linux.
Commonly used code editors also provide their tools for using version control, for example:
Materials
Helpful Additional Tools
Windows:
Linux:
Mac: