IntroductionGit is a an open source, version control system that is used for software development and other version control tasks. As a distributed revision control system it is aimed at speed, data integrity, and support for distributed, non-linear workflows.
Official project website:
https://git-scm.com/InstallationLike always, first of all, we recommend to update your server. It can be done simply executing:
apt-get update
Now we can install git using
apt-get:
apt-get install git-core -y
At time when this tutorial is written newest version in
Time4VPS repositories is 2.7.4. You always can check your
git's version with command:
git --version
ConfigurationAfter installation we can start configuring git, first of all you need to setup your user for
git. We will use user
test with email address
[email protected] for this tutorial:
git config --global user.name "test"
git config --global user.email "[email protected]"
If you forgot or want to change some details you always can modify
git's configuration file:
nano .gitconfig
ConclusionThat's it! You had installed and set up
git on your server.
Comments
I have a lot of problem to install