How to setup github repository in my NetBeans IDE?

后端 未结 5 1348
遥遥无期
遥遥无期 2020-12-30 08:13

I am very new to Github. I just created one github account and it says as bellow:

Step 1)

Global setup:
 Set up git
  git config --global user.name          


        
相关标签:
5条回答
  • 2020-12-30 08:43

    For anyone at this page with similar issues common problems with netbeans ide:

    If you have two factor authentication switched on in your github security settings netbeans can not handle this. If you use git bash cli it will popup with a login box and two factor code entry.

    Also check your config file in the .git/ folder as netbeans can change git@github to [yourusername]@github.com in the url path which you can edit in this config file back to git@github.com.

    These changes should allow you to push to a remote repository.

    0 讨论(0)
  • 2020-12-30 08:45

    You have to select the private key, not the public one.

    0 讨论(0)
  • 2020-12-30 08:46

    Github setup is so easy with netbeans IDE. Follow the steps..

    1 - Go github and create a repository, and copy URL like https://github.com/akatkar/....

    2 - Open Netbeans IDE. If GIT plugin is not installed, install from tools/plugin

    3 - From Netbeans Team menu click clone

    4 - Paste your URL as repository URL, provide your github user name and password

    5 - Netbeans IDE will clone your repository and will ask to create a new application

    6 - Create an application and copy or create your source files in this application

    7 - Commit changes and push to the remote

    8 - DONE. Check from github your changes and enjoy...

    0 讨论(0)
  • 2020-12-30 08:58

    Open your terminal, enter your project root fold, and add your remote:

    $ cd path/to/your/projcet
    $ git remote add origin git@github.com:me/java.git

    I think it should detect your setting, then check how your IDE set your github repository.

    0 讨论(0)
  • 2020-12-30 09:05

    Try prefixing ssh:// to the repository url, but I suspect the real reason is that you have not configured the private key (the one that matches the public key which you should have added to your github account) for authentication.

    0 讨论(0)
提交回复
热议问题