Created a token then used:
git clone https://[my username]:ATATT...@bitbucket.org:HearstNP/wcm_central.git wcm
Cloning into 'wcm'...
fatal: unable to access 'https://bitbucket.org:HearstNP/wcm_central.git/': URL rejected: Port number was not a decimal number between 0 and 65535
Where ATATT.... is my token.
Hey Stephane,
That's a URL formatting issue - you've got an extra colon in there that's confusing git about the port number.
The problem: Your URL has bitbucket.org:HearstNP
which git is interpreting as trying to use "HearstNP" as a port number.
Fix: Remove the colon before your workspace name:
git clone https://[your-username]:ATATT...@bitbucket.org/HearstNP/wcm_central.git wcm
Bitbucket URL format should be:
https://username:token@bitbucket.org/workspace/repo.git
https://username:token@bitbucket.org:workspace/repo.git
Alternative approach: You can also configure git to use the token globally:
git config --global credential.helper store
Then just use the regular clone URL and enter your token when prompted.
Double-check:
That should get you sorted! Drop me a line if you're still having issues with the authentication.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.