News for hackers. Stuff that matters.
Re:Using git and dropbox together by CoachRufus87 on Thursday February 17, 2011 @12:40AM (#2229921)
i just placed my projects folder within the dropbox folder, and use github as normal. perhaps i'm doing it incorrectly...
Re:Using git and dropbox together by klochner on Thursday February 17, 2011 @01:20AM (#2230025)
The state of your projects folder can change pretty rapidly when you check out different branches. For some reason I'm not a fan of my dropbox folder constantly trying to keep up with my branch changes.

I do like the idea of having a viewable copy of my git repo available, but to be honest I don't ever want to touch code if I can't git diff/commit

Re:Using git and dropbox together by agnoster on Thursday February 17, 2011 @04:58AM (#2230433)
Ditto this - the idea of having the bare repo in Dropbox, but having my frequently-changing stuff (especially, as you point out, with branch changes) locally seems to me to be the sanest alternative.

I hacked together a quick script to facilitate this (http://github.com/agnoster/git-dropbox), since it seems like one of those things where less friction potentially leads to significant changes in behavior.

Re:Using git and dropbox together by ludwigvan on Thursday February 17, 2011 @01:37AM (#2230078)
I agree, I used to have my working copies in Dropbox folder, but I observed some occasional conflicts. After those, I switched to having the bare repo on Dropbox.
Re:Using git and dropbox together by tzs on Thursday February 17, 2011 @07:41PM (#2233635)
Let R be the copy of the repository on your local machine that is syncing with Dropbox. You could do:

    git clone R R2
and work in R2 when you are doing a bunch of rapid switching between branches, and then delete R2 when you are doing with that and back to working on one branch. If you changed anything on the branches, you could push from R2 to R before deleting R2.