skip to Main Content

I’ve been using Visual Studio Code along with Git so that I can upload my local repositories to my remote repository on GitHub using the Git Bash terminal.

But every time I do ‘Git Push’ VS Code proceeds to freeze and then crash (forces the program to close). And when I try to reopen it after forcing it to close, the program repeats the same thing, freezes and closes.

I would appreciate if someone could give me a solution to this. I thought it might be due to some incompatibility of VS Code with Ubuntu 24.04.01 LTS. But honestly I’m new to Linux and I have no idea about the subject.

2

Answers


  1. Chosen as BEST ANSWER

    FINALLY I CAN SOLVE

    When doing git push -u origin main you will be asked for a user (your GitHub user) and in the password, there will be a token that you have to generate from GitHub. It is generated by going to (in gitHub.com):

    Settings > Developer Settings > Personal Access Tokens > Tokens (classic)


  2. Check for Updates: Make sure Visual Studio Code and Git are up to date. Sometimes, updates can fix compatibility issues.

    Disable Extensions: Some extensions might be causing the crash. Try disabling all extensions. You can do this by starting Visual Studio Code with the

    code –disable-extensions flag:

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search