Thank you for this! very helpful and straight to the point.
@TutorialTim2 жыл бұрын
Thank you!
@siegblink1824 жыл бұрын
Super amazing! This saved me a lot of time fixing the author mixup issue in my Github account. Thank you very much.
@TutorialTim3 жыл бұрын
Thank you!
@junioranheu3 жыл бұрын
Thank you very much, it worked like a charm. For those who are struggling with the "bad revision" error, don't use Windows or GIT CMD, use the Windows Powershell instead
@TutorialTim3 жыл бұрын
Awesome, glad it helped!!
@TomChristerSchöön6 ай бұрын
This really helped me, thanks a lot man!
@ankitaghadge.13372 жыл бұрын
How can i permanently change author name for commit for all repositories?? Every time when i am doing first commit to pushing the project on GitHub its showing someone else author name. What i can do?
@jen24499 Жыл бұрын
Real hero who saves people from ShitHub tortures... Ty man! Btw, whoever is wondering if it works on Windows or not, the answer is yes. I'm using Win10 and it works fine, just repeat for the author.
@TutorialTim Жыл бұрын
Lol this comment made my day! Thank you for watching and glad this video helped! Keep on committin' 😎
@clipshistoricosca83262 жыл бұрын
THANKS MAN! this literally saved all of my coding work that didnt appear!!!!!!!!!! thanks really appreciate it!
@TutorialTim2 жыл бұрын
Glad I could help, happy coding! xD
@m4heshd3 жыл бұрын
By the way, the SHA-1 commit hash is not a feature of GitHub. It's a core feature of Git. Also when you perform this all the SHA-1s will change because how the commits are chained to each other using this hash. It's a dangerous thing to do on a mature repository with multiple authors or other functionality referencing hash.
@TutorialTim3 жыл бұрын
Updated the description of the video. Thanks!
@m4heshd3 жыл бұрын
@@TutorialTim Wonderful. 👍🏻
@liambirt37583 жыл бұрын
@@TutorialTim hey Tim, thanks for the video but I'm a bit confused by this particular chain (relatively new to Linux, Git & Github). I forked a pretty sizable repo and got the hyperlink of my forked version, then went to my CLI and ran: "git clone --bare " My goal is to swap all company names and abbreviations within the code and author information out of my fork and as I add on then I can just do so in their original repo. That said, I don't want to change authors in their repo ha and I'm also not finding how you changed everything within the code (markdown)?
@almirsantos995 жыл бұрын
You're insane dude, really thank you, i maded thousands commits on "ubuntu" user (lol), now i have it to my account. Amazing
@TutorialTim5 жыл бұрын
Ahhh thank goodness! Bet that commit history is looking beautiful now haha
@Caveine2 жыл бұрын
my godness its work, thanks man.
@TutorialTim2 жыл бұрын
Thank you!
@junialdy2 ай бұрын
Thank you! this really helped me
@rabbymir59342 жыл бұрын
Great video, thanks! I had committed using my work e-mail same as you.
@vommir.8 ай бұрын
Thank you, thank you, thank you!
@g.t.34822 жыл бұрын
It was very helpful and quick! thanks for posting this...
@TutorialTim2 жыл бұрын
Of course!
@ciaran4872 жыл бұрын
Great tutorial thanks Tim!
@TutorialTim2 жыл бұрын
Thank you!
@info6622 жыл бұрын
still works in 2021. Thanks man
@TutorialTim2 жыл бұрын
Woot woot!
@tejashelwatkar78944 жыл бұрын
Great tutorial. Thank you so much!!
@kylamarjes34382 жыл бұрын
thank you for this tutorial. it works for me!
@TutorialTim2 жыл бұрын
Thank you!
@irazirfan4 жыл бұрын
omg! that did work! You are the boss man, thanks a lot for sharing :)
@ajetunmobiisaac31523 жыл бұрын
Thank you, this was really helpful
@TutorialTim3 жыл бұрын
Awesome, glad I could help!
@yuvrajsingh-my5oz3 жыл бұрын
Thanks a ton bro....You really saved me...
@chiragranpara95804 жыл бұрын
Thanks buddy! it is really helpful
@malikhaseeb62362 жыл бұрын
Man you saved my life. Thank you
@TutorialTim2 жыл бұрын
You bet! Gotta have those commits logged accordingly lol
@timmymanamperiАй бұрын
thanks heaps for the video very useful one for me. tc
@iuryweblondon Жыл бұрын
Awesome, you saved me, thank you!!!
@cameronpartee29492 жыл бұрын
Thank you thank you!! This saved my life!! :)
@TutorialTim2 жыл бұрын
Thank you, Cameron! :)
@gurmukhsingh-uh5qo3 жыл бұрын
thanks for sharing, worked great
@zayan1843 жыл бұрын
not working in my case 😭
@JobinSelvanose2 ай бұрын
Thanks
@eBlackize3 жыл бұрын
I'm getting an error saying "zsh: event not found: /bin/sh"
@ferozahmed349611 ай бұрын
It's amazing! How can I run this script for another branch? Is it possible?
@stefano_girardelli5 жыл бұрын
Amazing tutorial! This was the only way I could fix it. Thank yout!
@TutorialTim5 жыл бұрын
Glad I could help!
@mansithakkar47253 жыл бұрын
I followed the same it worked but it created duplicate commits with new details ... How to remove all duplicate one??
@ankitaghadge.13372 жыл бұрын
I can able to change the author name for the commit but the old author name is still there in contributors. How can I remove it?
@leenabhandari59492 жыл бұрын
helpful, Thanks!
@HaoTran-hd7io3 жыл бұрын
you save my day, thanks a lot :D
@Qwerter14105 жыл бұрын
Thank you!
@srinidhisaravanan27642 жыл бұрын
Hi, thanks for this method, but even after rewriting, it is not reflecting in the github remote, can anyone help me
@樊腾飞3 жыл бұрын
Hi Tim, it worked in the default branch master, but some commits in other branch like dev, but the question is i couldn't update email in this branch, it seems only update your default branch , when i try to checkout branch to dev, it said: fetal: this must be run in a work tree
@FedericoCuelhoLariau2 жыл бұрын
Does this procedure change the datestamps on all commits to the date you are correcting the author?
@piyuinshort3 жыл бұрын
Wow! it works!!!
@AnagheemAzzam4 жыл бұрын
Hello Tim, thanks for the tutorial! I'm on Windows, I tried solving the problem that I have undefined accounts other than my actual account committing to my repo on GitHub. I tried running your script but it keeps showing that error on terminal "fatal: bad revision 'OLD_EMAIL=my_old_email'
@TutorialTim4 жыл бұрын
It may be that the OLD_EMAIL variable doesn't have the right e-mail account due to a typo? I would also double check the account you're currently signed into with the command `git config --global user.email` and see which account you're currently on. You can change it with the following: git config --global user.email "email@mail.com" Let me know if that helps!
@AnagheemAzzam4 жыл бұрын
@@TutorialTim Thanks for replying. No actually I tried this solution and others before watching your video and nothing worked. when I run the command to check my current email and user name that commits to the repo, it shows my actual and correct username but on the repo there's an undefined username committing instead of the actual one with my pic and so on.
@TutorialTim4 жыл бұрын
Did you paste into a notes editor to modify the values linked to the variables? If so I would recommend replacing the quotations in a code editor as pasting into apps such as Notes can convert your quotes into curly quotes. I'd ensure that they're all straight quotes. Hope this helps!
@ramis2963 Жыл бұрын
Great video Can someone know that i changed the email or not ? Thanks
@TutorialTim Жыл бұрын
'git log' your commits after making the changes to see who the commits belong to.
@ernestandersonhutasoit94104 жыл бұрын
Thanks, it work. But when i push again it got error. I can avoid error with --force when push it but the author changed back to normal Is it really work like that or i make mistake?
@alimeree42993 жыл бұрын
Error : zsh: event not found: /bin/sh How to solve this error pls!!!?
@dissonance1105 жыл бұрын
Hi Tim, great tutorial! Do you know if there would be any issues caused if I did this one a group repo? Looking over the commit history I noticed my contributions were like this and wanted to change them to the correct username/email. Any help you can give me would be great!
@TutorialTim5 жыл бұрын
Dissonance no issues, it will just overwrite your commits with the username u specified in the script and replace them with the new one you want. Let me know if that works.
@dissonance1105 жыл бұрын
It worked on one project, but not another. I can't tell the difference between the two, but I'll keep digging
@devilattack-to9ok Жыл бұрын
my username and mail is getting changed but I cant see my profile pic in front of them like you. can you please address me.
@kiattim21003 жыл бұрын
the result shown "Ref 'refs/heads/main' was rewritten" But nothing happen, I'm sad.
@TutorialTim3 жыл бұрын
Even when u run git log nothing happened? Sounds like your commits have been rewritten
@kiattim21003 жыл бұрын
@@TutorialTim yeah, I might mess with it too much. Right now I'm trying the .mailmap method with git shortlog command and it shows a correct email now, but on the website the commit history is still the same. at this point I will just wait for a few day lmao.
@kiattim21003 жыл бұрын
@@TutorialTim ok It worked! now.. well actually my dumbass forgot to push the update lmao thanks you so much!!
@TutorialTim3 жыл бұрын
@@kiattim2100 your not dumb! Just trial and error, happens to me all the time! Happy coding!
@DrogonTheDread2 жыл бұрын
Brill thanks all my commits where just sent from git :0
@TutorialTim2 жыл бұрын
Excellenttttt
@brucew65085 жыл бұрын
WARNING: Ref 'refs/heads/master' is unchanged my result is not rewritten, what can i do next?
@TutorialTim5 жыл бұрын
Hi Bruce, send me your email so we can work together on resolving your issue!
@brucew65085 жыл бұрын
@@TutorialTim Thank you! I just solved it. The secret is to enter the correct OLD_EMAIL. LOL. Your method is perfect.
@TutorialTim5 жыл бұрын
@@brucew6508 lol noice. glad you figured it out on your own!
@harrisongreeves85615 жыл бұрын
I'm having the same issue. I've tried both of my old emails but I get the same error. Any idea where to find the email associated with the commits on GitHub?
@SanjitKumar-kh1hj4 жыл бұрын
A year late, but I seem to have the same issue. But I've checked my old email, it seems to be right. @Tutorial Tim Any help would be nice. Thanks!
@mikechadwick27854 жыл бұрын
holy shit thank you
@thecode9078 Жыл бұрын
Destroyed my entire project insights, thanks a lot