Custom GitLab instance support
hickford opened this issue · 6 comments
hickford commented
To use with a custom GitLab instance, eg. gitlab.example.com
- Register an OAuth application on the host
- Browse to eg. https://gitlab.example.com/-/profile/applications
- Specify name git-credential-oauth
- Specify redirect URI http://127.0.0.1
- Uncheck 'Confidential'
- Select scopes read_repository and write_repository
- Click button 'Save application'
- Adjust and run the commands with the generated client id
- Share these commands with colleagues
git config --global credential.https://gitlab.example.com.oauthClientId <CLIENTID>
hickford commented