I have 2 github account X (professional one) and Y (personal one).
On my personal computed, I used both account, with Visual Code.
But now, when I try to push some changes to my repository, I have a message :
Permission to Y/repo.git denied to X.
It's a duplicate of this, but the answer there are not working for me.
I tried :
git config --global user.email "email@example.com"
Didn't work. I tried without --global
, didn't work.
I also saw this answer, but I have no idea how to 'un-blacklist' a file. Anyway I can't even find my .gitconfig
.
I'm loosing patience and hope, if anyone has a solution to this, I will be very grateful for sharing !