Skip to content

Instantly share code, notes, and snippets.

@oclero
Last active March 29, 2024 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oclero/5def742d216d20a60034fee1e220e163 to your computer and use it in GitHub Desktop.
Save oclero/5def742d216d20a60034fee1e220e163 to your computer and use it in GitHub Desktop.
Push to Git repository with https on Gitlab/Github
# Gitlab
git push https://gitlab-ci-token:<YOUR_TOKEN>@gitlab.com/<GROUP_NAME>/<REPO_NAME>.git <BRANCH_NAME> [--force]
# Github
git push https://<USERNAME>:<YOUR_TOKEN>@github.com/<USERNAME>/<REPO_NAME> <BRANCH_NAME> [--force]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment