Product/GitLab
[GitLab] GitLab OAuth Token 발급 후 Token으로 Git Clone
Codit Develop
2021. 12. 9. 15:57
반응형
GitLab OAuth Token 발급
URL
[YOUR GITLAB URL]/oath/token?
grant_type=password&
username=[USER_NAME]&
password=[USER_PASSWORD]
Response
{
"access_token": "[ACCESS TOKEN]",
"token_type": "Bearer",
"refresh_token": "[REFRESH TOKEN]",
"scope": "api",
"created_at": 1639032205
}
발급된 Token으로 Git Clone
# git clone http[s]://oauth2:[USER_TOKEN]@[REPO_URL(Without http/https)]
git clone https://oauth2:ts223ngi23j4@gitlab.ex.com/test/test.git
반응형