git clone
| git clone https://github.com/zlorn/xxx
git clone https://UserName:password@github.com/zlorn/xxx
git clone https://xxx%40qq.com:password@github.com/zlorn/xxx
git clone https://github.com/zlorn/html-test test
git clone -c http.sslVerify=false https://github.com/zlorn/html-test
|
git add
git commit
git commit –amend
git pull
| git pull
git -C <path> pull
|
git push
git reset
| git reset head a.txt
git checkout -- a.txt
git reset head . git checkout .
|
git merge –abort
git gc
git gc 是 Git 的一键清理与优化命令,它主要通过压缩与打包历史对象来节省磁盘空间并提升读取速度,同时清理超过缓冲期(默认2周)的游离无用对象和旧日志。