polite-architect-52194
08/19/2025, 2:58 PMgit push stops working after a while (I normally don't use the Cloud, but I'm traveling at the moment, and wanted to demo some OpenHands features)
I tried logging out/back in, restarted the thread container. In both cases:
# git push
remote: HTTP Basic: Access denied. If a password was provided for Git authentication, the password was incorrect or you're required to use a token instead of a password. If a token was provided, it was either incorrect, expired, or improperly scoped. See <https://gitlab.com/help/topics/git/troubleshooting_git.md#error-on-git-fetch-http-basic-access-denied>limited-student-10747
08/19/2025, 3:01 PMexport GITLAB_TOKEN=xxx . If you run that in the terminal the agent will notice that you refreshed the token and try to use the new onepolite-architect-52194
08/19/2025, 3:03 PMlimited-student-10747
08/19/2025, 3:05 PMelegant-branch-54423
08/19/2025, 3:06 PMpolite-architect-52194
08/19/2025, 3:11 PMexport GITLAB_TOKEN=xxx
git remote set-url origin <https://oauth2>:${GITLAB_TOKEN}@gitlab.com/<your_repo_path>.git
git push