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
Cannot push with Fork instance of git #1397
Comments
Hi. Did you try to log in to your GitHub account in Fork? |
May be your global git config contains What is the result of |
Repository settings in Fork are set to "Use global git credentials" My
|
The system git has the command available:
But the version of git that Fork uses can't see it…
Which is weird, because it has its own copy right next to it…
So it looks like the git instance bundled with Fork is not correctly finding its own subcommands |
Those are only affect the identity you use when commit (user.name and user.email).
Did you change the password recently? Or is that possible that Fork doesn't have an access to the github.com password entry in the KeyChain Access application? Anyway, I'd recommend to log in to GitHub account in Fork. The login/password authentication on GitHub is deprecated. |
There is a GitHub.com password in the login keychain which is a personal access token that works with |
This is a setup that previously worked, and was broken by a Fork update… as mentioned switching to the system (Xcode) git instance from the Fork one works around the issue. The instance bundled with Fork isn't resolving the location of its subcommands:
The system instance has the extra step
|
Also just to confirm a hunch, placing the contents of Fork.app in
So the problem here is that the current version of Fork is shipping a broken included git instance that is not able to resolve the executable path of its own subcommands sitting in the directory alongside it |
Does Fork have an access to that record? The thing is,
No, this is wrong. Fork doesn't use (or need) osxkeychain, however, if you define/override
I believe, I didn't touch the authentication code for at least 10 versions. |
I'm completely confused by your questions about keychain record access. The error is that Fork's instance of git cannot find find the git-credential-osxhelper binary that is shipped right alongside it. This works in older versions of Fork, so has been broken recently - perhaps as a result of the git update |
If you could make the .dmg files of older versions of Fork available, I'll let you know which version of Fork this was broken in |
I wasn't sure about the problem first and tried to ensure that it's not a lack of the access to the password.
I see now. Yes, you are right. We indeed replaced git instance some time ago and there might be differences. But I don't consider
I think, this is fine because Fork doesn't need it. In your case git calls |
So given the above, why does the Fork distribution contain It's at /Applications/Fork.app/Contents/Resources/git-instance/bin/git-credential-osxkeychain
Should Fork be adding that directory to PATH before executing its own instance of git, so that it gets the correct version?
This is the recommended instructions by GitHub: https://docs.github.com/en/github/getting-started-with-github/getting-started-with-git/caching-your-github-credentials-in-git Without this in |
I'm having the same issue. (I can provide system or application details or versions if needed.) I am trying to push to a bitbucket repo that once worked fine. I can push from command line git but cannot push from Fork. Same error as @keybuk. The mentioned workaround of changing the git instance that fork uses from the bundled one to a system one works for now. |
Was this ever fixed? I am still seeing it with Fork 2.16 on MacOS. For now, I'll switch to the system image of Git. |
@lewisl no. For me it doesn't look like a bug. |
Whatever. I am updating to latest developer tools. And I’ll point Fork to the system instance of git.
From: Dan ***@***.***>
Reply-To: fork-dev/Tracker ***@***.***>
Date: Thursday, March 17, 2022 at 11:08 AM
To: fork-dev/Tracker ***@***.***>
Cc: Lewis Levin ***@***.***>, Mention ***@***.***>
Subject: Re: [fork-dev/Tracker] Cannot push with Fork instance of git (#1397)
@lewisl<https://github.com/lewisl> no. For me it doesn't look like a bug.
—
Reply to this email directly, view it on GitHub<#1397 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAIYWLIKMOU2HX2P55A7VSDVANYH7ANCNFSM46R6G6TQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
This was a big Doh!
I had to change the protocol for the repo from SSH to HTTPS. Along the way I did switch to system git and installed git-credential-core.
All working.
You can close it from my standpoint.
From: Dan ***@***.***>
Reply-To: fork-dev/Tracker ***@***.***>
Date: Thursday, March 17, 2022 at 11:08 AM
To: fork-dev/Tracker ***@***.***>
Cc: Lewis Levin ***@***.***>, Mention ***@***.***>
Subject: Re: [fork-dev/Tracker] Cannot push with Fork instance of git (#1397)
@lewisl<https://github.com/lewisl> no. For me it doesn't look like a bug.
—
Reply to this email directly, view it on GitHub<#1397 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAIYWLIKMOU2HX2P55A7VSDVANYH7ANCNFSM46R6G6TQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi there, Fork always tries to Push using simply the 1st of 2 added GitHub-Accounts under Fork > Accounts… Has anybody found a working "fix" for this behaviour? |
You can specify account for a particular remote. Right click on a remote on the sidebar and select 'Edit'. In the dialog you can select the account. |
Yeeez – THANK YOU @DanPristupov! |
Thanks @DanPristupov that fixed my issue 🙏🏻 |
Thanks @DanPristupov. it works :) |
Mac mini M1, Fork 2.8
When Git instance is set to the default (2.31.1 Fork instance), cannot push due to the following error:
Pushing to https://github.com/keybuk/...
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/keybuk/.../'
In a case you entered incorrect password, please
update it in Keychain Access application.
Changing Git instance to 2.30.1 (Apple Git-130) /usr/bin/git works
The text was updated successfully, but these errors were encountered: