Git常见命令
撤销commit:
git reset --soft HEAD~1
修改commit内容:
git commit --amend
暂存代码:
git stash save “message”
查看暂存列表
git stash list
恢复暂存
git stash pop
根据名字恢复stash
git stash apply
常见提交前缀
feat (feature) :新功能
fix (bug fix):修复bug
docs (documentation) :文档
style (formatting, missing semi colons, …):格式
refactor:重构
test (when adding missing tests):增加测试
chore (maintain):辅助工具变动
Q.E.D.