Thursday, April 27, 2017

Install git on Ubuntu 14.04

There are two ways to install, one is directly through ubuntu APT installation, this method is the most simple, the disadvantage is that the version may not be up to date. There is another way to download the source code for installation, which can be installed to the desired version. Here only say the first:

steps: 

sudo apt-get update
sudo apt-get install git

 and then configure their own Git account information, so as to carry out the relevant operation:

git config --global user.name "Your Name"
git config - -global user.email "youremail@domain.com"

You can view the git configuration information with the following command:
git config --list

 The following information is displayed:

 user.name = Your Name
user.email=youremail@domain.com

No comments:

Post a Comment