1.从库拿 code :
git clone repos@xxx.xxx.x.xxx: server_code_lib local_code_lib
2.git diff
看 working tree 与 index file 区别 : git diff
看 index file 与 git repository区别 : git diff --cached
看 working tree 与 git repository区别: git diff HEAD
3.查看 code 状态
git status
4. 添加 code
git add 目录 或 git add . (当前目录)
5.添加说明信息
git commit -m "notes: for test"
6.查看日志
git log
7.从 server 更新最新的 code
git pull origin master