Git 提交规范
prefix | description |
---|---|
feat | A new feature |
fix | A bug fix |
docs | Documentation only changes |
style | Changes that do not affect the meaning of the code |
refactor | A code change that neither fixes a bug nor adds a feature |
perf | A code change that improves performance |
test | Adding missing tests or correcting existing tests |
build | Changes that affect the build system or external dependencies |
ci | Changes to our CI configuration files and scripts |
chore | Other changes that don’t modify src or test files |
revert | Reverts a previous commit |
Git 常用操作记录
创建远端分支
|
|
删除远端分支
|
|
从远程分支中创建并切换到本地分支
|
|
删除分支
|
|
重命名本地分支
|
|
交互式变基到指定记录
压缩commit记录
|
|
继续变基操作
|
|
修改 commit 注释信息
|
|
撤销 commit 保留变动
|
|
撤销 commit 保留变动和 git add
|
|
撤销 commit 并删除变动
|
|
当前修改存储或取出到 stash
[see more]
|
|
清空所有的 commit
|
|
快速切换到上一个分支
|
|
关联远程分支
|
|
展示本地分支关联远程仓库的情况
|
|
从远程分支中创建并切换到本地分支
|
|
展示简化的 commit 历史
|
|