(There probably exists a simpler way to do that, but I haven't found it yet.)
I can always check out my repository via git:// even on a machine where I want to push to it, because my repository includes a ~/.gitconfig containing:
So, I can automatically push as long as I have SSH access to my server. (I wrote the support for pushInsteadOf in upstream git, specifically to enable this use case.)
Whenever I set up a new machine, I always do this:
(There probably exists a simpler way to do that, but I haven't found it yet.)I can always check out my repository via git:// even on a machine where I want to push to it, because my repository includes a ~/.gitconfig containing:
So, I can automatically push as long as I have SSH access to my server. (I wrote the support for pushInsteadOf in upstream git, specifically to enable this use case.)