用户工具

站点工具


git

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
git [2020/11/20 23:03] – [修改用户名和邮箱] ploughgit [2022/04/20 17:29] (当前版本) plough
行 45: 行 45:
 // 修改最近一次提交的用户信息 // 修改最近一次提交的用户信息
 git commit --amend --author="NewAuthor <NewEmail@address.com>" git commit --amend --author="NewAuthor <NewEmail@address.com>"
 +</code>
 +
 +===== 回退到某个版本 =====
 +<code>
 +git reset --hard fae6966548e3ae76cfa7f38a461c438cf75ba965
 +</code>
 +
 +===== 本次提交跳过 precommit 检查 =====
 +<code>
 +git commit --no-verify -m "xxx"
 </code> </code>
git.txt · 最后更改: 2022/04/20 17:29 由 plough

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki