JetpackDuba / Gitnuro

A FOSS Git multiplatform client for newbies and pros
https://gitnuro.com/
GNU General Public License v3.0
869 stars 44 forks source link

Ability to connect your github account to Gitnuro #205

Open dnkmmr69420 opened 4 months ago

dnkmmr69420 commented 4 months ago

Is your feature request related to a problem? Please describe. It is a quite difficult to figure out how to have it push to my github repos

Describe the solution you'd like This can be done using the githjb cli called gh It would work like this

  1. The gh binary would be downloaded
  2. Gitnuro would open the default terminal or other terminal that was specified in settings and run gh auth login
  3. gh guides the user to log in`
  4. After gh is connected to your github account, Gitnuro would read ~/.config/gh/hosts.yml
  5. Gitnuro would use the username for the username and the oauth_token as the password
  6. There will be a button that you can press that will autofill with info from ~/.config/gh/hosts.yml and automatically fill out username and password
JetpackDuba commented 4 months ago

You can just use Git Credentials Manager which will manage everything for you.

There is a section in the readme explaining how to configure it.

dnkmmr69420 commented 4 months ago

You can just use Git Credentials Manager which will manage everything for you.

There is a section in the readme explaining how to configure it.

I really had no idea what to edit and there should of been a link to the git credintial manager page because I had no idea it was even a program.

JetpackDuba commented 4 months ago

There isn't one because it's one more tool of the Git ecosystem, nothing specific to Gitnuro. Your solution is a workaround for how GitHub manages passwords, you should not be doing that anyway. In case you've missed this comment:

You can't use your password to authenticate, it's something that GitHub changed a few years ago. You need to generate an authentication token as explained here https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens

As mentioned in the other issue, you can also use Git Credentials Manager.

This also applies to original CLI Git client, not only to Gitnuro.