playground

基础

命令

重命名

git mv <old_file> <new_file>

查看日志

git log [--oneline] [-n<N>] [--graph] [--all]

切分支

git checkout <branch>

撤销最后一个commit

git reset --soft HEAD~1