简体   繁体   中英

Incorrect credentials when trying to clone Repository to NetBeans with https

I use NetBeans 12.5, set up a new projek and want to clone an existing repository to my local drive. I use Tools -> Git -> Clone... image of top meny choices made

After entering the Repository URL and a user /password i get the error message: Incorrect credentials for repository at https://github.com/MYORG/PATH/TO/myrepro Image of Clone-Repoitiry wizzard window and error message

I have checked that I can login tp the repository on Github with exactly that combination of usernamn and password that that worked.

I have also used the comandline interface to clone my repository and that worked (to make sure it's not a connectivity issue). The comandline that I use is exaclty the same path to repro and it clones the correct repository: git clone https://github.com/MYORG/PATH/TO/myrepro

However the comandline uses a differnet authenticator (info: please complete authentication in your browser...).

My question is: 1)How can I get the NetBeans clone to work. 2)As a workaround, can I clone by comandline and to which diretory do I have to clone?

Follow these steps to resolve it :

  1. Login to your github account and click on your username and select settings
  2. On the sidebar select "developper settings"
  3. Select on the shown screen "personal access tokens"
  4. On top right select "generate new token"
  5. Under "note" field give a name to the tokens
  6. Give an expiration to your token under "expiration" field
  7. Under "select scope" check "repo"
  8. Click "generate token"
  9. Copy the generated token and put it maybe in notepad or anywhere safely and use it on netbeans as password

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM