Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change GitHub account on TortoiseGit

when I am going to push, I got the permission deny

I am going to change GitHub account on TortoiseGit because the current account doesn't have the permission to push.

error:[remote:Permission to (repository) denied to (GitHub account)]

Can any methods change the GitHub account on TortoiseGit?

like image 815
Luke Avatar asked Apr 26 '16 12:04

Luke


People also ask

How do I remove authentication from TortoiseGit?

Step A: Settings > Saved Data > Clear the Authentication data.

Is TortoiseGit same as Git?

TortoiseGit is a Windows Shell Interface to Git and based on TortoiseSVN. It's open source and can fully be build with freely available software. Since it's not an integration for a specific IDE like Visual Studio, Eclipse or others, you can use it with whatever development tools you like, and with any type of file.


1 Answers

I know it is late but some may find the below information useful.

You need to open the .git folder (it is hidden folder, enable show hidden folders option first) then config file within it.

There you can see many properties like [core], [remote], [origin].

Now you need to create property like [credential].

[credential]
   username = your-account-username
[user]
   name = your name
   email = your email address

if any of the property is already present, replace it with your required account detail.

That's it, now when you commit or push again, it will ask for the password of the account details you have entered in config file.

like image 55
Mohan Avatar answered Oct 10 '22 01:10

Mohan