Git#
Using BitBucket Server/Datacenter Git#
-
Create a personal access token
-
Do this for your git configuration
git config --global http.https://bitbucket.example.com.extraHeader 'Authorization: Bearer Token'Some more details
git clone -c http.extraHeader='Authorization: Bearer REPLACE_WITH_TOKEN' https://bitbucket.example.com/scm/project-name/repo-name.git git config --global http.https://bitbucket.example.com.extraHeader 'Authorization: Bearer Token'or (if you don\'t want to use the token in the header)
git config --global url."https://<username>:<personal-access-token>@bitbucket.example.com".insteadOf "https://bitbucket.example.com" -
As your module URLs use something like this for go/note.foam.md projects:
bitbucket.example.com/project/repo
Do NOT use the
scmpart in the URL