git status: 查看修改文件
git diff: 查看修改部分
git add file1 file2... : 添加修改
git commit --amend: 提交代码
git branch -a: 查看当前分支
git checkout 分支名: 切换分支
git reset HEAD: 撤销操作
git push origin HEAD:refs/for/分支名: push代码

git status: 查看修改文件
git diff: 查看修改部分
git add file1 file2... : 添加修改
git commit --amend: 提交代码
git branch -a: 查看当前分支
git checkout 分支名: 切换分支
git reset HEAD: 撤销操作
git push origin HEAD:refs/for/分支名: push代码