tags:

views:

20

answers:

1

I am tracking a remote repository, i.e. I have refs/remotes/joe/master.

I know would like to get joe's changes as soon as possible into my repository.
I don't want to use fetch, because I might not be at the computer when he commits. So I tell him: I might be out for shopping, so please just push your changes to refs/remotes/joe/master.
The reason I want his changes asap in my repo is that he turns off his computer in the evening, so I wouldn't be able to fetch his changes when I come back from shopping.

I know that joe should just setup a bare, public repository, but this is sort of an overhead.

Is pushing to refs/remotes/joes/master an okay thing to do in such a case?

A: 

You could ask him to setup a post-commit hook to automatically push.

But he should push to a bare repo set on your side (which would allow you to pull from that bare repo at any time, since, again, it is on your side)
You can even setup another hook (a post-update hook in your bare repo) to pull automatically

VonC