将远程提交还原为一个提交

2022-04-21

以下示例是关于Sh中包含将远程提交还原为一个提交用法的示例代码,想了解将远程提交还原为一个提交的具体用法?将远程提交还原为一个提交怎么用?将远程提交还原为一个提交使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

文件名:git[英]:Revert remote to a commit源码类型:Sh
git reset --hard <commit-hash>
git push -f

本文地址:https://www.itbaoku.cn/snippets/785096.html