4

I have been trying to push the code to Github but getting error as below.

$ git push fatal: cannot run /snap/code/79/usr/share/code/resources/app/extensions/git/dist/askpass.sh: No such file or directory

Iam able to push by providing username and Personal access Token but it valid for only in that push command. Next time when i try to push the code it is again asking for credentials followed by the error.

  • 1
    Probably a duplicate question. This will help you https://stackoverflow.com/questions/22147574/fatal-could-not-read-username-for-https-github-com-no-such-file-or-directo – Venkata N Bhupathi Nov 18 '21 at 05:47
  • Does this answer your question? [fatal: could not read Username for 'https://github.com': No such file or directory](https://stackoverflow.com/questions/22147574/fatal-could-not-read-username-for-https-github-com-no-such-file-or-directo) – bassxzero Nov 18 '21 at 05:52
  • Hi Venkata, But looking on the error we are getting it looks like an issue with other file. Also iam able to see the username and other details with command git config --list – Sreerag N Varier Nov 18 '21 at 05:54

1 Answers1

2

One solution that worked for me was to restart VS Code

  • 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). – Pankwood Feb 23 '22 at 14:59