一个修改git commit的名字/email/日期的工具

时间:2021-1-8 作者:admin

Modify your git commit information.

Install

npm install -g recommit

Usage

recommit <commit-hash|author-name|author-email> [options]

Options:
  -V, --version               output the version number
  -d, --date [date]           modify the date, eg: "2019-12-12 12:32:50"
  -a, --author [author]       modify the author, eg: "Jack <jack@email.com>"
  -c, --comitter [committer]  modify the committer, eg: "Jack <jack@email.com>"
  --author-name [name]        modify the author name, eg: "Jack"
  --author-email [email]      modify the author email, eg: "jack@email.com"
  --author-date [date]        modify the author date, eg: "2019-12-12 12:32:50"
  --committer-name [name]     modify the committer name, eg: "Jack"
  --committer-email [email]   modify the committer email, eg: "jack@email.com"
  --committer-date [date]     modify the author date, eg: "2019-12-12 12:32:50"
  -h, --help                  output usage information

Modify Date

recommit ef187ddc -d "2019-02-14 14:00:00"

Modify Author

recommit ef187ddc -a "Jack <jack@email.com>"

LICENSE

MIT

声明:本文内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎进行举报,并提供相关证据,工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。