Git is a free and open source distributed version control system. In this section, we will try to install and configure Git:
- Open a terminal in the CentOS-based system and execute the
yum install git
command in the terminal. - Once it is successfully installed, verify the version with the
git --version
command.
- Submit information about the user with the use of the
git config
command so that commit messages will be generated with the correct information attached. - Provide the name and email address to embed into commits.
- To create a workspace environment, create a directory called
git
in the home directory and then create a subdirectory inside of that calleddevelopment
. - Use
mkdir -p ~/git/development ; cd ~/git/development
in the terminal. - Copy the
AntExample1
directory into the development folder. - Convert an existing project into a workspace environment by using the
git init
command. - Once the repository is initialized, add files and folders:
- Commit...