Jump to content
aormsby

GitSync - Invalid Credentials

Recommended Posts

I have a Github repository that I'm trying to sync with my Plastic repository, but I only seem to be able to sync one way. My first sync works only if I don't put in a username/password, and I can successfully sync the Plastic repo with my Github repo. However, when I check-in a change and then try to sync with git again, I always get the error "The credentials introduced for this repository are not valid". This is true not matter what I put into the username/password boxes, even if they remain empty as before.

 

Now, I assume that the username and password asked for are the u/p combo I use to log on to Github. But it's not working. Why? How can I fix this?

 

The repo I'm testing: https://github.com/aormsby/LittleTools-Unity.git

Share this post


Link to post
Share on other sites

Hey, I figured out the problem through some extensive research of my own and, I thought I'd leave the fix here for anyone else with this problem since it isn't documented anywhere as far as I can tell. It turns out I actually blocked myself out by using 2-factor authentication on Github, and PlasticSCM doesn't work with 2FA by default. That's why my username/password combination wasn't working when I tried to sync with git. In order to bypass this problem, I had to generate a personal access token in the Github 'Application' settings and then use that as my password in PlasticSCM. Everything works just fine now, and I'm happy as can be.

  • Like 2

Share this post


Link to post
Share on other sites
On 6/22/2014 at 9:30 PM, aormsby said:

I had to generate a personal access token in the Github 'Application' settings and then use that as my password in PlasticSCM.

It is now in 'Developer settings' (settings -> developer settings -> personal access token -> generate new token), but the solution is still working 5 years later ;-). Thank a lot !

https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...