Before creating this question, I already read the answer using git filter-branch exportand git rebase, but none of them apply to my situation here.
git filter-branch export
git rebase
So, I joined the company for 3 months, the first commit I made on the repo was under the computer name and email (Unknown / something @something), and that the only commit with this name and email. Now that the email starts to bother us, when we set up a new job at Jenkin, it starts sending email to this address, which leads to the return of email for everyone.
I would like to change the name and email address on this particular commit for myself so that I can fix the problem. However, the problem is this:
I am really looking for a solution to change the author’s name and email address only for this particular commit, and also will not affect anyone else. Please help. Thanks and really appreciate it!
So, here is my final decision I just made:
.
- , , , . "" -, "" , , .., - , , , , , .
, git " " : , SHA-1 , .. . , , , (, ) .: -)
, , - - git "notes" . - , , git log, - , SHA-1, () , , - - . "- " , SHA-1 .
git log
, . git log, , core.notesRef, refs/notes/commits. - , ?
core.notesRef
refs/notes/commits
, git export-branch export git rebase, .
, , - git rebase . , , 1000 HEAD , :
HEAD
git rebase -i HEAD~1000
, rebase. , , , , . , 999 .
, , .
, , . , . , . , .
, :
, git replace .
( , . , , GIT_COMMITTER_DATE="2000-01-01T12:00:00" git commit --date==2000-01-01T12:00:00)
GIT_COMMITTER_DATE="2000-01-01T12:00:00" git commit --date==2000-01-01T12:00:00
git replace, commit
Hope jenkins understand git replace. If so, he finished (very easy). The added value of this solution is valid here.
If not, use the git filter-branch, but that will affect every story (like the other solutions offered), and other developers will hate you (but this solution is much safer than a clean rebase!)
Source: https://habr.com/ru/post/1607577/More articles:Encode emoji to Unicode code point - PHP / JS - javascriptApplication rejected due to advertising identifier (IDFA) - iosWhy do I need an address resolution protocol? - networking"Токен" - "недействителен" при вставке в PostgreSQL-сервер через Rails и pg gem - rubySwich table in case of CRC error - networkingHow to add icon to button_tag using HAML? - ruby-on-railsКак преобразовать значения времени внутри кода jinja в локальный часовой пояс браузера при загрузке страницы? - javascriptHow to create multiple employees in Python-RQ? - pythonProblems related to SOIL through g ++ in Yosemite - c ++"constexpr" in C ++ 14 - c ++All Articles