https://morvanzhou.github.io/tutorials/others/git/1-2-install/
https://www.youtube.com/watch?v=obbH1hGB5GI&list=PLXO45tsB95cKysjmSNln65YoUt9lwEl7-&index=2#t=326.719542
https://github.com/MorvanZhou
cd ~/catkin_ws/
cd src
cd gitTUT
或者
cd ~/Desktop
cd gitTUT
git config --global user.name "MIN"
git config --global user.email "601985329@qq.com"
git config user.name
git config user.email
将gitTUT变成我们的管理库文件夹
clear
git init
显示所有文件
ls -a
sudo open .git
touch 1.py
git status
git add 1.py
github流程图
git log
修改1.py文件
a=1
git status
git commit -m "change 1"
再次修改1.py文件
a=2
b=1
git status -s
git diff
git add .
git status -s
git diff
git diff --cached
再次修改1.py文件
a=2
b=1
c=b
git status -s
git diff HEAD
git add .
git commit -m "change 2"