I’m having an error with VS Code, I can’t use Git for my work, when I try to start a git add <file>
git commit -m "<text>"
git push
to the remote repository I have no problem, the problem is when I close the work, and I have to reopen it with the program.
When I do this, the program opens, freezes and after a few moments it closes or rather, it asks me to force it to close.
I tried deleting the .git folder from my work, but doing that is complicated, I could even risk losing all my work. I also tried cloning my remote repository from GitHub, but when opening the cloned folder from the remote repository with VS Code, the program crashes and asks me to force close it.
I’m using Linux Ubuntu 24.04.01 LTS just in case I have to clarify it.
One thing I’m thinking is that it’s a problem with the Visual Studio Code integrated terminal, since whenever I try to use it to do Git commands, the program crashes, so I had to resort to using a GitHub Token and doing the pushes from the external Linux terminal.
How can I solve this?
David is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2