Easy Git Installation on CentOS 7

Git is a very popular, modern, open source, distributed version control system designed to help keep software development and installations current.

With this tool installed, you will be able to easily install and work with projects on popular repositories, like BitBucket and GitHub, or your own Git server, like Apache Allura.

Since a lot of modern software is distributed via Git, the software is available through yum.

Installing Git

  • First, run updates sudo yum update
  • sudo yum install git

If everything installed correctly, the following command will give you the version of Git:

  • git --version

Configuring Git for Commits (Optional)

If you are simply using Git to download software, you can skip this. Otherwise, we can run the following commands and configure our installation, to allow us to contribute on projects:

  • sudo git config --global user.name "Your Name" If you don't remember your username, please follow this suggestion.
  • git config --global user.email "yourname@yourdomain.com"
  • Verify: git config --list

An easy installation, a very useful tool.

This website is supported by our affiliation with web hosting companies. We encourage you to visit our friends at Interserver. They really do offer $6 per month VPS Hosting. Linux, windows and cpanel available, have super fast service, and they care about their customers

See more articles in: Instructions, CentOS, Linux

comments powered by Disqus