Commit as repo owner when logged in different account on git desktop?

Viewed 15

When im logged in Github Desktop with account XXX, and commit a file to a repo from a different account YYY using a token like:

git pull
git add .
git push https://YYY:ghp_...@github.com/YYY/... main

The file is uploaded to YYY repo and on Github website it displays the files has been committed by the XXX account.

How do i upload it as if it where being uploaded from YYY account and not XXX?

Do i need to logout from Github Desktop first?

0 Answers
Related