如何使用Dropbox和USB棒/拇指驱动器的git [英] How to use git with dropbox and a usb-stick/thumbdrive

查看:144
本文介绍了如何使用Dropbox和USB棒/拇指驱动器的git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



背景

$ b因为我对git比较陌生,所以我希望能够快速启动如何在配置中使用git。
$ b

我正在写我的机械工程学士论文,并在大学和家里工作。

这篇论文本身就是一个。 docx文件(不允许使用TeX)与一些.xls文件和子文件夹中的图片共享一个子文件夹,其中包括所有相关文献,这些文件只需要1.5次演出。



配置



在家里,我有一台台式机和一台笔记本电脑,都可以上网。
在大学里,我用一台电脑 - 我会说 - 片状的互联网访问。



所以我希望所有电脑上的文件都留在同步。

现状



目前,我使用Dropbox来保存所有文件并同步家里的电脑,同时使用USB棒和一些robocopy批次将家里的文件与大学里的文件同步。

目标



现在我想使用git,并希望知道如何最好地设置存储库。例如。在哪里放置中央存储库,如何使用USB棒......



我认为github作为中央存储库是不可能的,因为它的配额为1GB

我仍然可以使用Dropbox,或者是否破坏存储库中的文件?

解决方案

Dropbox可以工作,但我不会推荐它用于同步完整的git repo(同步太多的文件)。



然而,它可以非常容易地同步一个文件。

在git lingo中, git bundle

如何同步两个git仓库,你可以保存将一个本地git仓库的内容复制到一个文件中(位于您的Dropbox文件夹中)。
在第二台机器上,您可以克隆或获取fr这一个文件(由dropbox更新)。



创建后,您可以逐步更新您的套件,添加所有新分行和标签


As I am relatively new to git, I hope to get some jump-start on how to use git in my configuration:

Background

I'm writing my bachelor's thesis in mechanical engineering and work both at the university and at home.

The thesis itself is a .docx file (no TeX allowed) with some .xls-files and pictures in subfolders alond with a subfolder including all of the relevant literature which alone takes 1.5 gigs of space.

Configuration

At home, I have a desktop and a laptop, both have internet access. At the university, I use a pc with - i would say - flaky internet access.

So I would like the files on all my computers to stay in sync.

Current Situation

At the moment, I use dropbox to hold all of my files und sync both computers at home, while using a usb stick and some robocopy-batches to sync the files on my pcs at home with the one at the university.

Goal

Now I would like to use git and would like to know how to set up the repositories best. E.g. where to put the central repository, how to use the usb stick...

I think github as a central repository is out of the question as it has a quota of 1gb per repo.

Can I still use dropbox or does it break the files in the repository?

解决方案

Dropbox can work, but I wouldn't recommend it for synchronizing a full git repo (too many files to synchronize).

However, it can synchronize very easily one file.
In git lingo, a git bundle.

As explained in "How to synchronize two git repositories", you can save the content of a local git repo into one file (located in your Dropbox folder).
And on your second machine, you can clone or fetch from that one file (updated by dropbox).

Once created, you can incrementally update your bundle, adding all new branches and tags.

这篇关于如何使用Dropbox和USB棒/拇指驱动器的git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆