Created a token then used:
git clone https://[my username]:ATATT...@bitbucket.org:HearstNP/wcm_central.git wcmCloning 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.
bitbucket.org:HearstNP
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:
<a href="https://username:token@bitbucket.org/workspace/repo.git" target="_blank" rel="nofollow noopener noreferrer">https://username:token@bitbucket.org/workspace/repo.git</a>
<a href="https://username:token@bitbucket.org:workspace/repo.git" target="_blank" rel="nofollow noopener noreferrer">https://username:token@bitbucket.org:workspace/repo.git</a>
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.
It looks like you're new here. Sign in or register to get started.