Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git: keeping a project synced via mail

Tags:

git

I'm developing a project on my personal computer (a Macbook). I'm using git to version it.

I have another computer (the one I use at work) where I'd like to develop the same project in daytime. I have a free account at github, so I could use it to keep the work going syncing home and work development, but the project is not "public".

So, any way to work with git using email as syncing tool?

Thanks

like image 839
pistacchio Avatar asked Feb 01 '10 10:02

pistacchio


1 Answers

You should also look into git-bundle. From the help:

Some workflows require that one or more branches of development on one machine be replicated on another machine, but the two machines cannot be directly connected, and therefore the interactive git protocols (git, ssh, rsync, http) cannot be used. This command provides support for `git fetch` and `git pull` to operate by packaging objects and references in an archive at the originating machine, then importing those into another repository using `git fetch` and `git pull` after moving the archive by some means (e.g., by sneakernet). As no direct connection between the repositories exists, the user must specify a basis for the bundle that is held by the destination repository: the bundle assumes that all objects in the basis are already in the destination repository.

Bundles are binary files but they are typically small since you don't need to include the entire repository and they're compressed.

Git Magic has some example usage too.

like image 180
Pat Notz Avatar answered Sep 21 '22 15:09

Pat Notz