Git is one of the most popular open source tools used for distributed version control system. Git was originally developed in 2005 by Linus Torvalds, the famous creator of the Linux operating system kernel. It is commonly used for source code management and has become more used than old distributed version control systems (VCS) like SVN.
Version Control Systems helps you with the management of changes to documents, computer programs, large websites and other collection of information.
Install Git on Ubuntu 16.04 LTS
- Any Ubuntu 16.04 LTS release installed.
- SSH via the root user (You can use PuTTY)
Start by running general OS and package updates on your Ubuntu server:
After your server gets latest updates you can start to install Git on your Ubuntu server.
apt-get install git-core
In less than a minute, Git should be installed and ready to use!
You don’t believe? Confirm the installation of Git by running following command
Can you see the Git version?
You can now configure Git’s settings (for the root user)
To prevent any errors later while you commit, its a good idea to setup your user for git now. Setup the user ‘w3stuffs’ with the e-mail address [email protected]
git config –global user.name “w3stuffs”
git config –global user.email “[email protected]”
Check config changes
View the config file using cat with the following command
Or, you can also view the same details using the git config command:
git config --list
All done, Good luck.