Git和Dropbox-本地仓库 [英] Git and Dropbox - local repo

查看:82
本文介绍了Git和Dropbox-本地仓库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读过多的主题,并观看了许多有关结合Dropbox和Git功能的视频. 这样的线程是这样的:有效地同时使用Git和Dropbox?

I have read noumerous threads and watched many videos on combining Dropbox and Git functionality. One such thread is this: Using Git and Dropbox together effectively?

这就是我想要做的:

  • 我目前正在从事一个大型个人项目(只有我一个,不需要加密).
  • 在两台台式计算机(Win 7,Ubuntu)和一台笔记本电脑(OSx)上完成工作.
  • 我希望我的文件可以从任何地方访问,并且受版本控制(git)
  • 可以通过网络访问所有文件(通过Dropbox.com),非常好,因此,如果我要安装Git,则无需安装.借用计算机.

大多数指南都使用Dropbox存放远程存储库.可以,但是必须在每台计算机上安装git才能访问文件,这样就无法通过Web直接访问文件.

Most of the guides use Dropbox to house the remote repo. This is OK, but then one has to install git on every computer to access the files, an there would be no direct file access via web.

当前,我在Dropbox中有我的文件和本地存储库(是的,我知道大小问题),并且在学校ssh服务器上有一个远程存储库. 我的想法是,我可以选择在任何计算机上工作(甚至无需提交),并且仍然能够使用#2或#3计算机继续工作并从那里提交.整体备份在ssh服务器上.

Currently i have my files and the local repo in Dropbox (yes, I am aware of the size issue), and a remote repo on the schools ssh server. The idea is that i can choose to work on any computer (even without committing), and still be able to use computer #2 or #3 to continue work and commit from there. Overall backup is on the ssh server.

任何对此设置的想法将不胜感激.如果有人有更好的主意,请告诉我:)

Any thoughts on this setup would be greatly appreciated. If anyone has a better idea, please let me know :)

推荐答案

我真的不认为Dropbox是一个好的解决方案.对于您想要的东西,我可能会把git clone插入USB记忆棒并随身携带.

I really don't think Dropbox is a good solution for this. For what you want, I would probably git clone to a USB stick and carry that around.

除非如此,我知道的所有在线git主机(例如github等)都允许您下载任何提交的tarball,其中许多都允许您就地编辑文件.

Barring that, all the online git hosts that I know of (github, etc) allow you to download a tarball of whatever commit, and many of them allow you to edit files in-place.

这篇关于Git和Dropbox-本地仓库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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