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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -