[关闭]
@jeffjade 2018-01-21T17:47:43.000000Z 字数 357 阅读 1021

Git 操作之备注

Git


https://jeffjade.com/2014/12/22/2014-12-22-gitmemo/

修改 Git 提交信息

  1. git filter-branch -f --commit-filter '
  2. if [ "GIT_COMMITTER_EMAIL" != "jeffygisgreat@gmail.com" ];
  3. then
  4. GIT_AUTHOR_NAME="nicejade";
  5. GIT_AUTHOR_EMAIL="jeffygisgreat@gmail.com";
  6. GIT_COMMITTER_NAME="nicejade";
  7. GIT_COMMITTER_EMAIL="jeffygisgreat@gmail.com";
  8. git commit-tree "$@";
  9. else
  10. git commit-tree "$@";
  11. fi' HEAD
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注