一、git基础
其他常用命令
除了 git 基础命令外,还有一些高频率使用的 git 命令:
git status # 查看当前状态
git branch -v # 查看远程分支
git log # 查看log
git felog # 全部log
git checkout head . # 恢复修改的文件
git checkout -b feature # 新建分支并切换到新建分支上
二、git实践(高级)
三、工具
对于工具使用,建议大家直接阅读官网的使用文档。下面链接除了githooks以外,都是官网链接。
- vscode GitLens扩展使用
- sourcetree
- git commit message 管理
- githooks 该链接是我写简易教程——前端是如何使用 githooks。
- gitbook
- gitlab