Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows git: Fatal: TaskCanceledException encountered

Tags:

git

I have recently updated my git (2.7.4.windows.1). Since then pulling from github produces output like this:

$ git pull --rebase
Fatal: TaskCanceledException encountered.
Current branch ABC-123_Something is up to date.

The Fatal: TaskCanceledException encountered. appears after a boring 20 seconds and then everything works out just fine. I haven't found anything on the net and I would like to avoid wasting that 20 seconds over and over again.

like image 493
Notinlist Avatar asked Mar 30 '16 12:03

Notinlist


3 Answers

None of the above helped me... So my fix is to remove manager helper from git's system config:

git config --system --unset credential.helper

If you got permission denied, invoke above command after running cmd as administrator.

like image 162
Piotrek Avatar answered Nov 19 '22 05:11

Piotrek


I just ran into this same problem and, in case it is missed in the comments for the accepted answer, the fix is:

git config --global credential.helper wincred

Credit to Hugo Allexis Cardona

like image 36
jgode Avatar answered Nov 19 '22 05:11

jgode


There appears to be some relation between the setting of proxy options inside your global .gitconfig file and the need to clear your credential helper setting from the system level. I recently removed git http-proxy and https-proxy settings from my file for security reasons, and began receiving this message, then a pause, then a prompt to log into my external git repository. This happened with every fetch, push or pull. I didn't want to replace the proxy settings in my .gitconfig, so here are the steps that worked for me:

git config --list --system

git config --list --global

These will give you listings of all your system and global level settings. This confirmed that it was set to credential.helper=manager in the system namespace, and credential.helper=wincred in the global namespace. To remove the interference on the system level:

git config --system --unset credential.helper

All git command reverted to normal, with no error messages or delays.

like image 18
Artif3x Avatar answered Nov 19 '22 06:11

Artif3x