记录。同时也要回顾linux常用的命令。
#克隆一个分支
git clone git@github.com:onyx-intl/boox.git imx508
#查看分支
git branch -a
#换到某个分支
git checkout imx508
#子模块更新
git submodule update --init
#查看当前状态
git status
#撤销
git checkout -- <file>
#添加
git add filename
#删除
git rm filename
#从提交区域移除
git reset HEAD <file>
#提交
git commit
#stash 和apply
git stash
git stash apply
#看不同(常用的还加上重定向 > )
git diff