2026-05-06 09:00 浏览次数 22
检出
git checkout xx切换分支
git checkout filepath撤销修改
git checkout sk切换到自己分支
extral git checkout develop此时我们需要去开发另外一个特性
git checkout master切换到主干
git checkout HEAD file版本库
git checkout xxx撤销文件修改
git checkout newBranch切换分支
git checkout local切换分分支
For example, to reset any file to the way it is in GIMP repository, just type git checkout .
例如,要以它在GIMP知识库中的方式重置文件,只需键入gitcheckout。
I then made a new branch called empty-gdbinit and switched to it (I could have done this with git checkout -b empty-gdbinit as well).
随后我生成一个名为empty-gdbinit的新分支,然后切换到该分支(我也可以使用gitcheckout-bempty-gdbinit完成这个操作)。