-
Notifications
You must be signed in to change notification settings - Fork 0
git commit
2012 edited this page Sep 18, 2020
·
2 revisions
运行此命令时,会依次经历如下 hooks

git config commit.template filename 如果设置了此命令,编辑器打开之前会先读取模板文件信息
运行过程中会生成一个临时文件.git/COMMIT_EDITMSG,保存关闭编辑器时,内容会写入到临时文件中,然后读取 commit-msg钩子,此钩子会在编辑器关闭之后读取。
什么参数都不写的话,会开启一个 vi 编辑器进行填写
不开启新窗口,直接添加 message
修改上一次 commit 的 message,此时打开 vi 编辑器进行修改;可结合 -m修改;commit-id 会更新
复用某个 commit 的 message
重新打开编辑器进行修改
JS
CSS
- float
- BFC
- position
- flex
- grid
DOM
- DOM
- how browser works
Node.js
react
- 生命周期
- setState
- hook
git
- git 基础命令
- git rebase 理解
- git bisect
- git commit
- git hook
设计模式
- 策略模式
- ...
TCP/IP 协议
- HTTP/1.x
- HTTP/2
- SSL/TLS
- TCP
- DNS
- HTTP Cache
- CORS
- http status code
linux(shell)知识点