Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bower : install fork of Bootstrap

I have a git repo which is basically a fork of Bootstrap.

It has been modified and i can push on an other repo than the official one. It is still possible to pull from Bootstrap (to get updates).

My problem here is, when i enter bower install http://my_custom_url.git bower download the official Bootstrap repo and not mine.

I can't figure out why and unfortunately i cannot share the real url of my repo (it's locked by my company).

Any help would be really appreciated, thanks !

like image 828
maxime1992 Avatar asked Jul 08 '15 07:07

maxime1992


1 Answers

Unless you specify otherwise Bower downloads the latest release from your repo.

If you haven't created a new release, it will appear that Bower is downloading from the original Github branch. The latest release on your forked repo is the same as that of the original.

One option is to create a new release for your forked repo and it should work as expected.

Or, you could use bower install http://my_custom_url.git#commit where commit is the name of the latest commit with your edits to the Bootstrap code.

You could use branchname instead of commit but then you risk having the code change without you realizing it.

like image 123
YPCrumble Avatar answered Oct 20 '22 13:10

YPCrumble