Py学习  »  Git

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

jiulong • 5 年前 • 152 次点击  

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

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/29181
 
152 次点击