Git fatal error committing changes using username and password credentials
See original GitHub issuecode-serverversion:1.31.1-100- OS Version:
Linux Mint 19.1 Tessa - xfce - Kernel 4.15.0-46-generic
Description
I run a private git server (Bonobo), that requires username/password credentials for access. When I click Sync in the Source Control menu, I receive the following pop-up error:
Git: fatal: cannot run /home/travis/build/codercom/code-server/packages/server/build/extensions/git/dis/askpass.sh: No such file or directory
Git was installed using sudo apt-get install git
I’m running the server with a bash shell script as a service:
./code-server /projects --allow-http --password=password --port=8443 --data-dir=/code-server-data
Steps to Reproduce
- Click Source Control
- Enter a message for the commit (Ctrl+Enter to commit)
- Click Sync in ellipsis (…) menu of the Source Control tab
- Observe pop-up with previously mentioned error
Logs
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Git fatal error committing changes using username and ...
It is possible to bypass the error by using a credential helper or SSH keys, but this is only a workaround and we...
Read more >Git push results in "Authentication Failed"
It happens if you change your login or password of git service account (Git). You need to change it in Windows Credentials Manager...
Read more >GitHub keep asking for username password when git push
The main reason for this problem is mistakenly git clone the HTTPS URL; we need the SSH URL to use the SSH keys....
Read more >Why am I not prompted for password when pushing or ...
The most likely reason for this is that Git has been configured to use a credential helper. The configuration could have been made:....
Read more >Fix GitHub's 'support for password authentication ... - YouTube
Please use a personal access token instead' error ? GitHub removed password authentication on August 13th, 2021. You can still easily clo …...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I had the same issue. If you’re running with a docker container you can just update your image, as git is now included. Otherwise, run
git config --global credential.helper cacheand manually do a git pull/clone/etc (from the cli) where you’ll have to enter your password. Once you do that, git operations in the GUI should work.Good catch. Should be fixed with #1306.