• git rebase -i HEAD~3 合并多次本地 commit (10)本地改个功能,有时会提交很多次,产生多次凌乱的commit信息

  • git commit --amend --date 修改commit 时间 (3)半夜偷偷改了功能,还不想被发现如此用功

  • git commit --amend --author 修改commit 作者 (1)手误 git config --global 然后 github、gitee都被改了,要把已提交的commit作者改回去

  • git revert 1f8894b 通过新增一次commit 来还原更改(6)*

阅读全文: http://gitbook.cn/gitchat/activity/5da8380617ef014feb30b448

您还可以下载 CSDN 旗下精品原创内容社区 GitChat App ,阅读更多 GitChat 专享技术内容哦。

Git:我使用频率很高的命令

相关文章:

  • 2021-11-09
  • 2021-11-29
  • 2022-02-03
  • 2021-12-17
  • 2022-02-25
  • 2021-11-18
  • 2022-12-23
  • 2021-11-18
猜你喜欢
  • 2021-08-01
  • 2021-09-22
  • 2021-09-10
  • 2021-04-15
  • 2021-06-13
  • 2022-12-23
相关资源
相似解决方案