Install and config
Install and config
Git is a free version control software designed to manage and track the changes to your code.
Open terminal or command line and type: $ git --version
to check if you have it in your local environment. If you don't have it - install Homebrew first and then run: $ brew install git
Install on Linux:
Install on Windows
Configuration commands
The first thing you should after installing Git is to define your user name and email address:
# | Command | Description |
---|---|---|
1 | $ git config --global user.name "john.smith" |
Define your user name. |
2 | $ git config --global user.email "john.smith@example.com" |
Define your email address. |
3 | $ git config --system core.editor vim |
Set your default editor, in this case vim. |
4 | $ git config --list |
Check the current settings. |