【发布时间】:2020-04-13 14:51:55
【问题描述】:
我在一个项目中工作,我总是在其中制作 npm 版本补丁,今天我希望:
- 查看所有版本
- 签出特定版本
【问题讨论】:
我在一个项目中工作,我总是在其中制作 npm 版本补丁,今天我希望:
【问题讨论】:
如果您使用标签:
阅读此答案:What is git tag, How to create tags & How to checkout git remote tag(s)
选项很少,这里无法描述
结帐提交
# checkout any given commit
git checkout <hash>
恢复提交
# Reset the working tree to the desired commit
git reset <HASH/TAG> --hard
【讨论】: