Can't push from Git Bash: Could not find UI helper 'GitHub.UI'
Asked Answered
T

13

49

After a fresh install, I could clone the repository, make changes and commits, but when I try to push I get the following warning:

warning: could not find UI helper 'GitHub.UI'

After this, the process seems to still be running, but it gets stuck until I press Ctrl + C it.

I couldn't find this error online.

I can push from GitHub Desktop.

Twostep answered 12/12, 2022 at 23:43 Comment(3)
Git itself has no occurrences of "UI helper" in the source code. Git does have credential helpers and perhaps you have one configured that, in turn, tries to run something called a "UI helper". The output of git config --list --show-origin might be helpful here.Excogitate
Update: this appears to come from git-credential-manager.Excogitate
Git Bash presumably implies Windows(?). Shouldn't it have more tags?Nathannathanael
D
19

Maybe, there is some kind of issue in the latest update of Git v(2.39.0). However, you can get rid of this by installing the previous version of Git v(2.38.1).

Follow these few steps to solve this issue:

  1. Uninstall the currently installed Git.
  2. Go to Git for Windows 2.38.1 to download the Git v(2.38.1)
  3. Install the Git v(2.38.1)

Done!

Dotterel answered 15/12, 2022 at 6:42 Comment(4)
This is the best and working answer!Priest
as cem answered below v2.39.0(2) fixed the problem, no need to downgradeVonnie
@Vonnie Yes, but there was no update available at that time.Dotterel
This solved me on windows 11 22H2Korella
C
19

I have tried running the command in CMD, and it worked. Apparently it's because it can't show the options to authenticate.

Chenab answered 13/12, 2022 at 5:59 Comment(2)
I got the same message trying to clone a repository. I was going to take this suggestion, but because I'm trying to force myself to learn PowerShell I ended up trying from there. I got the same warning message, but instead of locking up (like it did in bash) I got a text menu of ways to authenticate with credentials manager. Using the default, "Web browser", with a browser already authenticated to my Github account worked perfectly.Admiral
I found that once I used CMD to authenticate to BitBucket, I could then use VS Code and Git BASH to commit, push, fetch, etc.Fulks
D
19

Maybe, there is some kind of issue in the latest update of Git v(2.39.0). However, you can get rid of this by installing the previous version of Git v(2.38.1).

Follow these few steps to solve this issue:

  1. Uninstall the currently installed Git.
  2. Go to Git for Windows 2.38.1 to download the Git v(2.38.1)
  3. Install the Git v(2.38.1)

Done!

Dotterel answered 15/12, 2022 at 6:42 Comment(4)
This is the best and working answer!Priest
as cem answered below v2.39.0(2) fixed the problem, no need to downgradeVonnie
@Vonnie Yes, but there was no update available at that time.Dotterel
This solved me on windows 11 22H2Korella
S
14

They fixed the issue with the v2.39.0(2) update. Mine is solved with this version. Check the patch notes:

The Git Credential Manager version shipped with Git for Windows v2.39.0 could not always find its UI helper which was fixed by upgrading to a fixed version.

Shurlocke answered 22/12, 2022 at 11:59 Comment(0)
A
12

I tried installing an older version (2.38.x) and it worked.

Antoineantoinetta answered 13/12, 2022 at 5:48 Comment(2)
Seems like 2.39.0 has some issueAntoineantoinetta
It worked on 2.38 perfectly after entering PAT (Personal Access Token).Unexpected
F
7

Actually the version 2.39 (released 3 days ago) is broken for Atlassian too with this error 'could not find UI helper "Atlassian.Bitbucket.UI"', and you won't be able to download from Visual Studio Code neither.

The only solution is download a previous version of Git, like 2.38.X.

Flowing answered 15/12, 2022 at 11:26 Comment(0)
T
6

I installed GitHub Desktop, and it solved the problem.

Treehopper answered 13/12, 2022 at 11:21 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Manofwar
M
6

Cloning from the project location, instead of git bash, gave me the below three options and after selecting PAT (personal access token) and entering my PAT I was able to successfully clone my repository.

People, who don't know about PAT, can follow the below link.

Enter image description here

How to generate a personal access token

Molder answered 19/12, 2022 at 13:11 Comment(2)
Thank you. It worked and completely fixed the issue without downgrading git.Organometallic
Please review Why not upload images of code/errors when asking a question? (e.g., "Images should only be used to illustrate problems that can't be made clear in any other way, such as to provide screenshots of a user interface.") and do the right thing (it covers answers as well). Thanks in advance.Nathannathanael
F
5

I was trying to clone a repository; passing credentials in the clone URL solved the issue for me.

The details are here.

Filial answered 13/12, 2022 at 21:37 Comment(0)
C
3

I tried Git clone on a fresh installed Git Bash and was prompted with the same message. I guess it happens when trying to authenticate the user.

I resolved it by either using GitHub Desktop or installing older versions on Git Bash.

You can install older releases here: Git for Windows.

Catafalque answered 13/12, 2022 at 7:28 Comment(0)
S
3

I've also encountered a similar issue with Git for 2.39.0.windows.1.

A Git clone from an Atlassian cloud-hosted Bitbucket repository gave me a

warning: could not find UI helper 'Atlassian.Bitbucket.UI'

I uninstalled 2.39 and installed 2.38 with the links above and bam, Atlassian Bitbucket displays its Connect to Bitbucket login modal.

Shading answered 24/12, 2022 at 10:51 Comment(0)
B
0

Just delete Git from Control Panel and reinstall from the Git scm website, and then push. It will ask for authentication. Provide Git the email address and password. Now it solved the problem.

Birr answered 14/12, 2022 at 12:15 Comment(2)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Manofwar
How exactly does one get to Control Panel? It is also one of the few cases where a screenshot would be appropriate. Please respond by editing (changing) your answer, not here in comments (********* without ********* "Edit:", "Update:", or similar - the answer should appear as if it was written today).Nathannathanael
P
0

It looks like the problem with the git-credential-manager which is installed along with the Git installation.

Uninstall Git, and then install again.

Select 'None' when "choose a credential Manager" screen to skip this issue.

Choose None instead of Git Credential Manager

Polyphone answered 15/12, 2022 at 9:18 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Manofwar
C
-2

Installing an old version worked for me, version Git-2.38.0-rc0-64-bit.exe to be specific.

Cristen answered 14/12, 2022 at 22:18 Comment(1)
Welcome to Stackoverflow! Great that you're looking to contribute by answering some questions. It seems, however, that your answer is a duplicate of already existing answers though. This is not really useful, so try to avoid this in the future.Guile

© 2022 - 2024 — McMap. All rights reserved.