Knowledgebase

How to Install Git on CentOS 7 Print

  • 0

This tutorial describes how to install Git on a Rcs CentOS cloud server. Git is a version control tool that tracks the versions of software and changes to the source code. Use Git to create new branches or revert your code to an earlier state at any time. This tutorial assumes you have a freshly deployed Rcs CentOS 7 cloud server instance.

1. Install Git

Run the following command to install Git.

yum install git

Verify the Git installation.

git --version

You should see the Git version number.

2. Configure Git

It's a best practice to configure your name and email address in Git.

  1. Set your name.

     git config --global user.name "Your Name"
  2. Set your email address.

     git config --global user.email "user@exmample.com"
  3. Verify the settings.

     git config --list

    You might see, for example:

     user.name=Your name
     user.email=user@example.com

More Resources

After setting up Git on your Rcs cloud server, you may want to browse the full Git documentation.

This tutorial describes how to install Git on a Rcs CentOS cloud server. Git is a version control tool that tracks the versions of software and changes to the source code. Use Git to create new branches or revert your code to an earlier state at any time. This tutorial assumes you have a freshly deployed Rcs CentOS 7 cloud server instance. 1. Install Git Run the following command to install Git. yum install git Verify the Git installation. git --version You should see the Git version number. 2. Configure Git It's a best practice to configure your name and email address in Git. Set your name. git config --global user.name "Your Name" Set your email address. git config --global user.email "user@exmample.com" Verify the settings. git config --list You might see, for example: user.name=Your name user.email=user@example.com More Resources After setting up Git on your Rcs cloud server, you may want to browse the full Git documentation.

Was this answer helpful?
Back

Powered by WHMCompleteSolution