using gitlab token to clone without authentication

前端 未结 14 2713
失恋的感觉
失恋的感觉 2020-11-28 17:56

I want to clone gitlab repository without prompt for my automation script, by using my private token from my gitlab account.

Can someone provide me a sample?

<
14条回答
  •  盖世英雄少女心
    2020-11-28 18:35

    Customising the URL is not needed. Just use a git configuration for gitlab tokens such as

    git config --global gitlab.accesstoken {TOKEN_VALUE}
    

    extended description here

提交回复
热议问题