Using Bitbucket from a network that does not allow ssh (port 22) connections means that doing a git push or pull using the standard git ssh remote won’t work.
git remote add origin https://[email protected]/USERNAME/REPOSITORY.gitWhere USERNAME is your user/login name and REPOSITORY is the name of the repository you want to access.
If you don’t want to enter your password every time you connect to the remote you can include the password in the remote url:
git remote add origin https://USERNAME:[email protected]/USERNAME/REPOSITORY.gitBut note that the remote URL, and thus your password, is shown on screen when you run git push etc.
What are your thoughts on this post?
If you liked this post, feel free to use the share button below. It always makes me smile when I see someone enjoyed it.
Written By
Kev