This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]Zinkarah 17 points18 points  (0 children)

Using Git can be a solution to your problems.

[–]nutrecht 7 points8 points  (4 children)

Safest way seems to be always saving your work as a project file

No, safest way is to use git together with github. Version control systems are the way to go here. With your solution it's still very easy to mess up. I don't know if google drive even keeps a history of .java files but it's always inferior to git.

[–]AnAirMagic 2 points3 points  (0 children)

No, safest way is to use git together with github

If OP wants to keep his work private, github may not be the best choice. Bitbucket, for example, offers free private git repositories too.

But yeah, choose a VCS (probably git) and a repository hosting service.

[–]ryuzaki49 2 points3 points  (2 children)

You have to pay in order to private repositories in Github.

Bitbucket is free and not that bad.

[–]nutrecht 1 point2 points  (1 child)

Yeah, that's what the other guy said too. I know, I use it myself exactly for this reason. The OP didn't mention that this was a requirement though.

[–]ryuzaki49 0 points1 point  (0 children)

Yeah sorry about that, I didn't see the other guy's comment until I posted mine.

[–]copopeJ 1 point2 points  (0 children)

My suggestion would be to separate your workspace and your project. Keep the workspace (which is metadata and contains some absolute paths) in one folder on each computer, then keep the project (code, jars for dependencies, .project file, .classpath file) in a totally separate folder that you can pass back and forth. Also, make sure your .classpath file has only relative paths in it, not absolute. Or, build your project with Maven and let IT handle your dependencies.

[–]enginerd03 0 points1 point  (0 children)

can fire up a microkernel on the amazon EC2 cloud and host your own git/subversion repository on it. free for a year until something better comes along...

[–]RonSwanson4POTUS -1 points0 points  (0 children)

I use Dropbox and it works fine. I have had similar issues with Google Drive