Sunday 15 June 2014

github - How to use git with dropbox and a usb-stick/thumbdrive -


As I am relatively new to git, I hope to jump in something to use git in some config:

/ P>

Background

I am writing my undergraduate thesis in mechanical engineering and work at both the university and the home.

Thesis is the only one. Is a Docx file (some .xls- with all-folders with files in files and subfolders, all related literature in place of 1.5 gigs alone.

configuration

At home, I have a desktop and a laptop, both have internet access

current status

At the moment, I have to keep all my files at home Using Dropbox to sync both computers, the University uses the USB stick and some robocopy-batches to sync the files to their PCs together at home.

target

Now I would like to use git and would like to know how to set up the best repository such as how to use the USB stick to insert the central repository ...

I think Zithub is out of the question as a central repository because it has a quotation of 1 GB per repo.

Can I still use Dropbox or can it break files in the repository?

I graduated under the same circumstances, both of your planned methods should be possible and with the same workflow Should work.

The way I suggest you with the USB stick, because the sync of the dropbox can cause a problem with the git command after boot

then the workflow:

Open a GIT repository on one of your computers, where your files are located in the folder where you have files. <<> git init

Then clone a bare repost on your USB stick.

  git clone - first first configuration   

Now there is a repo on your USB stick, such as on a server You can sync both other computers with a stick.

  git clone usbstickfolder   

Therefore all computers are in sync and version.

Be careful with some common mistakes:

  • Make sure the USB stick is always booted with the same drive letter (I suggest you use a window system We do). This will be a advance of the Dropbox.
  • When you work with branches, always push them all to stick

No comments:

Post a Comment