If I understood your question correctly, you're asking how to modify the copy in bower_components
and then commit that back?
You can use bower link
for that. First, clone your fork of the library:
git clone https://github.com/eugene/libfoo
Then, tell bower you have a local repository of libfoo:
cd libfoo
bower link
Finally, install a symlink to the library into your project:
cd myproject
bower link libfoo
If you inspect the bower_components
directory, you will find that libfoo
is a symlink to the cloned repo for libfoo
, which you can commit and push as you like.