https://github.com/thautwarm/fix-author
fix unexpected history missing for git
https://github.com/thautwarm/fix-author
git tools version-control
Last synced: about 1 year ago
JSON representation
fix unexpected history missing for git
- Host: GitHub
- URL: https://github.com/thautwarm/fix-author
- Owner: thautwarm
- License: mit
- Created: 2018-09-07T00:13:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-13T04:41:12.000Z (almost 8 years ago)
- Last Synced: 2025-04-15T17:11:28.157Z (about 1 year ago)
- Topics: git, tools, version-control
- Language: Python
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Fix Author
Sometimes, the history information of a committer could be missing by mistakes.
For instance, someone might configure his email incorrectly, or he might just not configure related
stuffs at all, as a consequence, his commits cannot be recorded at his github home page, while his contributions to
incorrectly configured projects are just ignored.
To solve this problem efficiently and conveniently, you can use **fix-author**.
Install
----------
```
pip install fix-author
```
Usage
---------
```
λ fix-author.exe --help
Available commands:
fix
fu: from user/author name to change.
tu: to user/name to be changed to.
fe: from email/email to change.
te: to email/email to be changed to.
```
Here are four examples:
- Change email for specific user
e.g: change `thautwarm`'s email to `123@q3.com`
```
fix-author fix -fu thautwarm -te 123@q3.com
```
- Change username for specific email
```
fix-author fix -fe -tu ""
```
- Change email when email and dated username are both specific
```
fix-author fix -fe -fu -te
```
**Take care**: after performing refactoring,
you should use `git push --force` to overwrite that repo's history.