Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to connect your github account to Gitnuro #205

Open
dnkmmr69420 opened this issue Feb 17, 2024 · 3 comments
Open

Ability to connect your github account to Gitnuro #205

dnkmmr69420 opened this issue Feb 17, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@dnkmmr69420
Copy link

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
@dnkmmr69420 dnkmmr69420 added the enhancement New feature or request label Feb 17, 2024
@JetpackDuba
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants