How can I have it to where "git push" pushes to local repositories?

Posted by ForeverConfused on Stack Overflow See other posts from Stack Overflow or by ForeverConfused
Published on 2011-01-14T17:40:14Z Indexed on 2011/01/14 17:53 UTC
Read the original article Hit count: 124

Filed under:

I can do "git remote add origin x@x:~/blah" and "git push" will work. But if I create a local copy "git clone ~/blah" inside /var -- then "git remote add local /var/blah" inside ~/blah, when I try "git push" it doesn't push the updates.

How can I make git push updates to local copies?

I have a shared library I use in a bunch of projects. I use "git clone" inside other folders to get a local copy of the library. When I update the main library I have to go to each local copy and type "git pull" to get the updates? How can I say "git push" to push code to all libraries?

© Stack Overflow or respective owner

Related posts about git