Ubuntu installation and use of the Git

Git Download

 

More under Ubuntu software installation problems, please pay attention here

 

1. Git installation

  • first step. Execute the command sudo apt-get update.
  • The second step. Excuting an ordersudo apt-get install git

2. Git usage

  • first step. Execute two commands

sudo config --global user.name "your github username"

sudo config --global user.email "email"

  • The second step. Run sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE, get the key and public key.
  • third step. Copy the contents of ~ / .ssh / id_rsa.pub, and then add your github settings.

Add to

As shown, click on the upper right corner of New SSH key, and then copy and paste the contents of the public can go. Then we can follow conventional usage Git to use.

Guess you like

Origin www.cnblogs.com/pyexile/p/11700537.html
Recommended