Skip to content

Instantly share code, notes, and snippets.

@egorzot
Forked from timjonesdev/gitlab.sh
Created April 27, 2021 09:14
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 egorzot/fb81d70bc22c34700c5e45abc787eea9 to your computer and use it in GitHub Desktop.
Save egorzot/fb81d70bc22c34700c5e45abc787eea9 to your computer and use it in GitHub Desktop.
git config \
--global \
url."https://oauth2:${personal_access_token}@privategitlab.com".insteadOf \
"https://privategitlab.com"
#or
git config \
--global \
url."https://${user}:${personal_access_token}@privategitlab.com".insteadOf \
"https://privategitlab.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment