Note that there are some explanatory texts on larger screens.

plurals
  1. POGit with Dropbox
    primarykey
    data
    text
    <p>I have been using git for half a year or so and I don't know whether I am using git fully.</p> <p>First of all, I have been experimenting with dropbox and I feel that if I can incorporate it into my work flow, it would be really great since dropbox is pretty convenient. </p> <ol> <li>I have a desktop, and a laptop. Both have dropbox. </li> <li>I initialized my dropbox repos by doing a <code>git init --bare</code>. And then in my Desktop's post-commit script, I have a <code>git push --mirror dropbox</code>.</li> </ol> <p>This way my desktop and dropbox will always be completely mirrored, which is a good thing.</p> <p><b>My real question is: How should I set up my laptop?</b> I have been hearing a few suggestions:</p> <ol> <li>Pull from my desktop, so that my laptop's origin is desktop. </li> <li>Pull directly from dropbox so that my laptop's origin is dropbox.</li> </ol> <p>I have been doing number 2, and I don't know if I am doing the right thing. My work flow includes:</p> <ol> <li>Everytime I am on my laptop, I do a git pull (since laptop's origin is dropbox and dropbox updates itself)</li> <li>Then when I check out a branch from dropbox to a local branch. </li> <li>After I am done with work, I commit. </li> <li>This is where I am confused: Should I push --mirror to my dropbox repos (my laptop's origin repos) too? I am getting some difficulties in this area: Sometimes dropbox doesn't sync quite well, etc</li> </ol> <p>Currently, doing a <code>git branch -r</code> on my desktop after doing <code>git push --mirror origin</code> on my laptop <b>doesn't show</b> my recently laptop commits. Can someone tell me why?</p> <p><i> I mentioned pulling from my desktop directly because that way I can always initialize the pull and I am 100% confident that the sync is done. With dropbox I can never be 100% sure whether the update has been pushed to the dropbox server </i></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload