Specify the git branch for bower registry

359 Views Asked by At

I want to specify a branch name while doing bower register instead of bower defaulting the git branch to master.

bower register mypackage [email protected]:mypackage.git#branch

but the above command doesn't work.

Thanks

2

There are 2 best solutions below

0
sschuberth On BEST ANSWER

From looking at the source code it seems like Bower simply does not support that (yet).

0
Tyler Russell On

Just to update (since I cannot currently comment on the accepted answer), I think it works as you described now -- something like this would be in your bower.json files dependency section:

"name-of-dependency": "git+ssh://git@git.<org name here>.com/path/to/gitfile.git"