In our development environment, outgoing Port 22 are blocked. And I assume the git push ..
command sends the files via SSH/22.
We're using BitBucket. Is it possible to git push
using HTTPS protocol instead of via SSH?
When you run git push
, it uses the URL for the remote you're pushing to to figure out how to transmit changes. It doesn't necessarily use SSH, or port 22; that only happens if the URL tells it to use SSH and port 22. See Git URLs in the manual for more information.
In particular, if the remote URL is an HTTPS URL, then Git will use HTTPS when pushing.
git push
depends on what was used in git remote origin
earlier? That means, if the repo was cloned by using https, then the pushing will be going through https?
remote: Support for password authentication was removed on August 13, 2021.
This is the message I got when trying to push using https, ssh is mandatory
Commented
Oct 23, 2022 at 18:24