Ubuntu安装Git

sudo apt-get
sudo apt-get install git

git --version 

git config --user.name "wanghao"
git config --global user.name "wanghao"

<!--creat a new folder and go in-->

<!--creat a ssh public key-->
ssh-keygen -t rsa -C "1106425813@qq.com"

<!--copy this public key and paste them into the github-->
cd ~/.ssh
gedit id_rsa.pub

<!--then go to your github.com and copy-->

<!--ping git to test whether connect or not -->
ssh -T git@github.com

<!--if connect, then "Hi wangqinghe95! You've successfully authenticated, but GitHub does not provide shell access."-->

 

posted @ 2020-10-15 20:21  王清河  阅读(247)  评论(0编辑  收藏  举报