[b]checkout a file from repository[/b]
or
[b]
reset the checkout[/b]
[b]add tag[/b]
git tag -a v0.0.1 -m 'version 0.0.1'
git push origin v0.0.1
git checkout HEAD^1 <filename>or
git checkout <HASH NAME> <filename>[b]
reset the checkout[/b]
git reset --hard <HASH NAME>[b]add tag[/b]
git tag -a v0.0.1 -m 'version 0.0.1'
git push origin v0.0.1
本文介绍了如何使用Git进行文件检出、重置以及添加标签等常见操作。包括如何从仓库检出文件、撤销更改并重置到特定状态以及如何为提交添加标签。
228

被折叠的 条评论
为什么被折叠?



