Ubuntu download Git

First of all

Install command is

sudo apt-get (-f) install git

It is likely that the download is unsuccessful, the display:

 

Then you need to do is to update and upgrade apt:

sudo apt-get update -y

sudo apt-get upgrade -y -f

Then execute sudo apt-get install git on it!

then 

After you install may want to do the first thing is to configure your own name and e-mail address in Git, in order to submit the change contains the correct information. Otherwise, when you create versions may be given:

 

This can be accomplished by using the following command:

parallels@parallels-vm:~$ git config --global user.name "parallels"

parallels@parallels-vm:~$ git config --global user.email "[email protected]"

Next, we will verify the configuration changes by viewing .gitconfig:

parallels@parallels-vm:~$ git config --list

[email protected]

user.name=parallels

Guess you like

Origin www.cnblogs.com/Agnes1007/p/11964866.html