46

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Diego
  • 630
  • 1
  • 5
  • 11
  • 1
    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. – torek Dec 13 '22 at 05:07
  • 2
    Update: this appears to come from [git-credential-manager](https://github.com/GitCredentialManager/git-credential-manager). – torek Dec 13 '22 at 05:14
  • [Git Bash](https://superuser.com/questions/1053633/what-is-git-bash-for-windows-anyway) presumably implies [Windows](https://en.wikipedia.org/wiki/Microsoft_Windows)(?). Shouldn't it have more tags? – Peter Mortensen Jan 16 '23 at 17:27

13 Answers13

19

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

Moises Ochoa
  • 301
  • 1
  • 6
  • 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. – Amandalishus Dec 16 '22 at 05:09
  • 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. – Brian Piggins Jan 05 '23 at 16:16
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!

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Zafar Faheem
  • 2,014
  • 1
  • 7
  • 7
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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
cem
  • 311
  • 1
  • 9
12

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

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
R Penumaka
  • 171
  • 7
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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
6

I installed GitHub Desktop, and it solved the problem.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
  • 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](/help/how-to-answer). – Community Dec 16 '22 at 19:38
5

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

The details are here.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
5

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

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
amnpawar
  • 104
  • 7
  • Thank you. It worked and completely fixed the issue without downgrading git. – Konrad Gałęzowski Dec 20 '22 at 13:09
  • Please review *[Why not upload images of code/errors when asking a question?](https://meta.stackoverflow.com/questions/285551/)* (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](https://stackoverflow.com/posts/74851019/edit) (it covers answers as well). Thanks in advance. – Peter Mortensen Jan 16 '23 at 17:59
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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
sam
  • 31
  • 4
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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
  • 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](/help/how-to-answer). – Community Dec 18 '22 at 21:26
  • 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](https://stackoverflow.com/posts/74798144/edit), not here in comments (********* ***without*** ********* "Edit:", "Update:", or similar - the answer should appear as if it was written today). – Peter Mortensen Jan 16 '23 at 17:37
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

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
  • 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](/help/how-to-answer). – Community Dec 18 '22 at 09:26
-2

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

  • 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. – Koedlt Dec 17 '22 at 19:39