I wrote a bash script to automate the process by using git to automatically push changes from PC1 to PC2 via a remote repository, such as github. So, how do I do it? What workflow should I use? If you have this question too, here's the workflow that I decided upon.
I tried rsync, but it was insanely slow for large repos and took tons of bandwidth and data. I need a tool to easily synchronize from PC1 to PC2.
Let's call the first computer where I write the code "PC1" (Personal Computer 1), and the 2nd computer where I build the code "PC2". build that code via ssh on a different, more powerful Linux computer (from the command-line, NOT from inside Eclipse).develop code using a powerful IDE like Eclipse on a light-weight Linux computer, then.This doesn't directly answer the OP's question, but it is so close I guarantee it will answer many other peoples' question who land on this page (mine included, actually, as I came here first before writing my own solution), so I'm posting it here anyway. It is simply a wrapper around git, however, so feel free to take it and convert it into a cross-platform Python solution or something if you wish This answer currently only applies to using two Linux computers (syncing from one to the other) because I wrote this synchronization script in bash.
How to edit in Eclipse locally, but use a git-based script I wrote ( sync_git_repo_from_pc1_to_pc2.sh) to synchronize and build remotely A remote project with Eclipse via SSH is now created. With the SSH connection set-up correctly passwords can be made an optional part of the normal SSH authentication process. If done correctly, there should now be a new remote project accessible from the Project Explorer and other perspectives within eclipse.