Is it possible to include a github repo from a specific id?
For example I need angular.js
repo with e12e584ca8db306dce8e0f4d3a212d77fbae966c
id.
Is this possible?
"dependencies":
"angular-my-repo":"https://github.com/angular/angular.js/tree/e12e584ca8db306dce8e0f4d3a212d77fbae966c",
"moment": "~2.1.0"
},
or what is the correct syntax?
bower install --save git://github.com/angular/angular.js#e12e584ca8db306dce8e0f4d3a212d77fbae966c
or
bower install --save https://github.com/angular/angular.js.git#e12e584ca8db306dce8e0f4d3a212d77fbae966c
see this thread
In addition to Cemo 's answer, It is possible to install bower package from a commit using the char '#'
ie
bower install --save package_name#commit_sha
eg
bower install --save angular.js#e12e584ca8db306dce8e0f4d3a212d77fbae966c
This will add to your bower.json the depndency
"angular.js":"e12e584ca8db306dce8e0f4d3a212d77fbae966c"
Hope this helps!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.