(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.)
Comments
I highly recommend not symlinking things at all; just have the repository itself as your home directory.
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.)I don't know if it's any simpler, but I tend to do: