-
-
Save zzuhan/a961f9b465bca52f792ccb82c8d064e7 to your computer and use it in GitHub Desktop.
[git操作] #git #util
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
基础的概念,索引,工作树, | |
* git revert (直接丢掉修改) | |
* 直接回退到某个commit版本 | |
* git reset (修改退回到工作区) | |
* 回退到某个版本,但是前面的修改会退回到工作区 | |
* 还有很多的选项,soft,mixed,hard,merge,keep | |
* soft,回退为已经added状态,绿色 | |
* mixed,回退为未added状态,红色, | |
* hard,慎用 | |
* git checkout | |
* 即 | |
[git reset 和 git revert - 掘金](https://juejin.im/post/5b0e5adc6fb9a009d82e4f20#heading-0) | |
[项目中的 Git 使用规范](https://jaeger.itscoder.com/dev/2018/09/12/using-git-in-project.html) | |
https://wsgzao.github.io/post/git/ | |
[团队最佳实践和 GuideLine 系列 (六):Git规范](http://deshui.wang/%E5%9B%A2%E9%98%9F%E5%AE%9E%E8%B7%B5/2016/04/10/team-guideline-git) | |
https://www.atlassian.com/git/tutorials/resetting-checking-out-and-reverting | |
src/service/AbstractService.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment