Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

I am trying to set up Bower on a build server at our organization's data center, but git's port does not appear to be open on the data center's firewall. I can use the git command-line client to clone via https://[repo], but not git://[repo].

Is there a switch or preference which will instruct bower to perform git clone using https rather than the git protocol?

I've looked at the source, and considered changing the resolution code to replace git:// with https://, but I figured I'd ask before I go to those lengths.

1 Answer

0 votes
by (41.4k points)

You can use git to replace the protocol for you. Just run:

git config --global url."https://".insteadOf git://

to use HTTPS protocol instead of Git.

Check out this Git Tutorial to know more.

Related questions

0 votes
1 answer
asked Jun 10, 2020 in DevOps and Agile by Sudhir_1997 (55.6k points)
+2 votes
1 answer
asked Aug 1, 2019 in DevOps and Agile by chandra (29.3k points)
0 votes
1 answer

Browse Categories

...