Git - Environment Setup
Git - Environment Setup
Git - Environment Setup
htm
Before you can use Git, you have to install and do some basic configuration changes. Below
are the steps to install Git client on Ubuntu and Centos Linux.
And if you are using RPM based GNU/Linux distribution, then use yum command as given.
[CentOS ~]$
su -
Password:
You can also set up system wide configuration. Git stores these values in the /etc/gitconfig
file, which contains the configuration for every user and repository on the system. To set
these values, you must have the root rights and use the --system option.
When the above code is compiled and executed, it produces the following result −
Setting username
1 of 3 29/04/21, 12:30
Git - Environment Setup - Tutorialspoint https://www.tutorialspoint.com/git/git_environment.htm
Setting email id
This information is used by Git for each commit.
Color highlighting
The following commands enable color highlighting for Git in the console.
2 of 3 29/04/21, 12:30
Git - Environment Setup - Tutorialspoint https://www.tutorialspoint.com/git/git_environment.htm
below.
user.name=Jerry Mouse
[email protected]
push.default=nothing
branch.autosetuprebase=always
color.ui=true
color.status=auto
color.branch=auto
core.editor=vim
merge.tool=vimdiff
3 of 3 29/04/21, 12:30