步驟:
1,sudo apt-get updatesudo apt-get install git
2,然后配置自己的Git賬號(hào)信息,這樣才能進(jìn)行相關(guān)的操作:
git config --global user.name "Your Name"
git config --global user.email "youremail@domain.com"
3,可以通過(guò)下面的命令查看git的配置信息:
git config --list
顯示信息如下:
user.name=Your Name
user.email=youremail@domain.com