Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
820 views
in Technique[技术] by (71.8m points)

authentication - Can't log in to GitHub on Android Studio

I can't sign in to GitHub on Android studio, as the picture shows.

enter image description here

I have reset my password, tried to put ' https:// ' in the server box, and still doesn't let me in and shows the same message.

I can no longer update the project I am working on with my team.
For some reason I was still able to commit and push to the repo and the changes were visible online.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try this:

On GitHub:

  • Log in -> Click on your avatar in the top right hand corner
  • Choose Settings -> Developer settings -> Personal access tokens
  • Click on the "Generate new token" button
  • Add a note if you want, like "Android Studio"
  • Select repo(all), read:org (under admin:org), gist
  • Click on the "Generate token" button
  • Copy the token

On Android Studio:

  • Go to File -> Settings -> Version Control -> GitHub -> Add an account
  • Click on the "Use Token" hyperlink, like in your screenshot
  • Paste your token, click login, click ok

"Log in to GitHub" prompt


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...