常用 Git 命令
常规
1 | $ git add <path>/<file> |
Remote
1 | $ git remote [-v | --verbose] |
查看日志
1 | $ git status |
版本回退
1 | #本地分支暂存区回退 |

分支管理
1 | $ git branch |
子仓库
1 | #在仓库当前路径添加子模块 |
1 | $ git add <path>/<file> |
1 | $ git remote [-v | --verbose] |
1 | $ git status |
1 | #本地分支暂存区回退 |

1 | $ git branch |
1 | #在仓库当前路径添加子模块 |