github - I've accidently pushed to a git repo with the wrong user account. How can I undo it or change the user? -
i have updated repo on github https://github.com/christill89/instaslider , computer signed in wrong github account details. latest 2 commits have been authored wrong account.
is there way can either change author or undo last 2 commits , push again correct account?
the repo , code correct, it's authored wrong account.
thanks
you can use patch files modify author (in ${editor} step update author):
git format-patch -2 git reset --hard head~2 ${editor} *.patch git *.patch
then push force rewrite commit history:
git push -f
Comments
Post a Comment