I didn't see this answer, but it seems easy enough. My token expired. After generating a new token on Gitlab, I tried to commit the code with VS Code. I received an error message the first time. The second time I received the popup below asking for user name (which is the token name) and password (which is the token). If you are using VS Code for the first time, you may have to try to clone a repo twice in order to get the popup below.