Git Product home page Git Product logo

Comments (12)

FrankTheTank9 avatar FrankTheTank9 commented on August 12, 2024 6

I ended up creating a personal access token as described here: https://help.github.com/articles/accessing-github-using-two-factor-authentication/#using-two-factor-authentication-with-the-command-line. I have authenticated using it through the command line and Sublime Merge works like a charm now.

from sublime_merge.

gregbarbosa avatar gregbarbosa commented on August 12, 2024 6

Taking @FrankTheTank9's advice, I was able to finally resolve this.

  1. Created a personal token for the command line
  2. Updated my macOS keychain with the new personal token
  3. In Terminal, ran a git command, and it re-prompted for my credentials. I typed in my username and used my personal token as the password

Sublime Merge now works beautifully!

from sublime_merge.

djibarian avatar djibarian commented on August 12, 2024 5

Just tried to generate an access token as described by @FrankTheTank9, used it as the password when asked in Sublime Merge and that solved the problem.

from sublime_merge.

iSilverfyre avatar iSilverfyre commented on August 12, 2024 4

=== App Version Information ===
Build: 1119

=== Git Version Information ===
Using Git: git (system)
git version 2.17.2 (Apple Git-113)
PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin (from shell)
environment variables loaded using: /bin/bash -l

This is an issue in the current version. I was able to get around this using the instructions for an access token, but ignoring native 2FA is not a great option in your build either. Especially when GitHub Desktop GUI prompts for the 2FA, which is what this program is designed in part to replace.

Is there any status updates on if or when this might be fixed or implemented?

from sublime_merge.

BenjaminHoegh avatar BenjaminHoegh commented on August 12, 2024 1

is there any status on when this would be fixed?

from sublime_merge.

djibarian avatar djibarian commented on August 12, 2024

I had the same problem recently. I was able to pull from GitHub with no problems and suddenly Merge is asking me for credentials. When I enter the right ones I get an “Invalid username or password” error. Then I disabled 2FA in GitHub and everything worked properly. Afterwards I enabled 2FA again and the problem reappeared in Merge.

from sublime_merge.

djibarian avatar djibarian commented on August 12, 2024

Why is this suddenly appearing if I never had any auth problems? Maybe a password cache issue? (I see there is an menu option for that which in my case is disabled).

from sublime_merge.

nicknameNothing avatar nicknameNothing commented on August 12, 2024

from sublime_merge.

nicknameNothing avatar nicknameNothing commented on August 12, 2024

from sublime_merge.

frozenpandaman avatar frozenpandaman commented on August 12, 2024

Instructions above worked – thanks!

Hoping to get this fixed as well, i.e. it'd be great if Sublime Merge integrated 2FA support or even linked to a page saying how to perform these steps.

from sublime_merge.

dpjohnst avatar dpjohnst commented on August 12, 2024

Hi all,

Thank you for sharing your concerns on this issue.

This is the official advice from GitHub: https://github.blog/2013-09-03-two-factor-authentication/#how-does-it-work-for-command-line-git

As Sublime Merge wraps around command line Git itself, its behavior should match the command line.

I'm going to go ahead and close this issue, but please feel free to re-open it if you feel it has not been addressed adequately.

Thanks,
- Dylan

from sublime_merge.

nk9 avatar nk9 commented on August 12, 2024

I ran into this problem on Windows with Sublime Merge and git bash. (In trying to fix it I had also installed Github Desktop as well, but I prefer Sublime Merge.)

While I followed the instructions and created a PAT, in the end I never needed to enter it anywhere. After creating the token, I ran git merge --rebase from the git bash command line and the tool opened a github.com page in my browser. I confirmed that I wanted the github command line tool to have access to my github account and voilà, Sublime Merge now works without further login requests.

So If that's your setup, it may not actually be necessary to create a PAT, try just authenticating with the CLI first.

from sublime_merge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.