Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to push to remote repo under another user

Tags:

git

github

I check this question about commit under another author git commit as different user without email / or only email
How can I also push to remote repo under another login. I do:

git commit --author="notMe" -m "whatever"
git push https://<remote-repo>
Username for 'https://github.com': notMe
Password for 'https://[email protected]': <notMe's password>

But as result I got this: commit & push result How can I commit & push like another author?


UPD: I tried git config user.name "notMe" and result is:
result
It's almost what I want but why my avatar is still here?

like image 245
Maksim Nesterenko Avatar asked Sep 28 '22 13:09

Maksim Nesterenko


1 Answers

You need to specify both the name and the email of the author of a commit to entirely vanish traces of your current account.

like image 146
zerkms Avatar answered Oct 02 '22 14:10

zerkms