In order to use Git, your computer must have it available. If you already have Git on your computer, you should make sure you have the latest version.
Git can be installed in three ways:
Terminal
Git Website
GitHub
Git Website
GitHub
Package Manager
For Fedora:
$ sudo yum install git
For Ubuntu:
$ sudo apt-get install git
Git Website
Git includes inherent Graphical User Interface (GUI) tools. However, users can also utilize third-party tools created for particular platforms.
GUI Clients
An inherent Git tool called
git config
allows the setting of configuration variables that control aspects of Git’s operation and look.
After installing Git, users should immediately set the user name and email address, which will be used for every Git commit.
git config –global user.name “Jane Smith” git config –global user.email “example@email.com”
git config –global user.name (should return Jane Smith) git config –global user.email (should return example@email.com)
By using the global option, these Git settings apply to anything on the system. To use different identity settings for a specific project, change the working directory to the desired local Git repository and repeat the steps above without using –global.
$ git config –global core.editor emacs
Note: For some editors, you may need to find specific instructions for default configuration.
To check settings, use the
git config –list command.
Example:
$ git config –list user.name=Jane Smith user.email=example@email.com color.status=auto color.branch=auto color.interactive=auto …
There are three ways to get more information on a particular command, by accessing the manual:
git help command git command –help man git-command