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

Viewed 1888

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.

2 Answers

One solution that worked for me was to restart VS Code

Ya, simply restart your vs code and it will ask then for permission from GitHub when you will push your code to remote

Related