我应该在Dropbox外部保留我的Git文件夹吗? [英] Should I keep my Git folder outside Dropbox?

查看:105
本文介绍了我应该在Dropbox外部保留我的Git文件夹吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我已经通过将其保存在我的Dropbox文件夹中管理我的代码,仅此而已。最近我的代码在规模和复杂性方面一直在增长,我想知道是否建立一个GitHub或Bitbucket帐户来更有效地管理它会更好。

我知道这里有几十个关于Git和Dropbox之间混合的问题;这正是让我困惑的原因。有人说这是一个好主意,而另一些人则说这是一个 .git 文件夹外部移动到我的Dropbox文件夹中?

解决方案

是的,将Git文件夹保留在Dropbox之外非常重要。

Dropbox有时可以
弄糊涂了并且创建了很多重复的文件,比如 filename〜(冲突),它可以真正搞乱你的Git仓库并需要时间清理。


So far I've managed my code by keeping it inside my Dropbox folder and nothing more. Lately my code has been growing in size and complexity and I'm wondering if it wouldn't be better to set up a GitHub or Bitbucket account to manage it more efficiently.

I know there are already dozens of questions here regarding all kinds of mixes between Git and Dropbox; this is precisely what got me confused. Some say it's a great idea while others say it's a terrible idea.

I just want to know: if I decide to set up a git repository, using either GitHub or Bitbucket, should I move my .git folder outside of my Dropbox folder?

解决方案

Yes, it is important to keep your Git folder outside of Dropbox.

Dropbox can sometimes get confused and create a lot of duplicates of your files, such as filename~(conflict), which can really mess up your Git repository and require time to clean up.

这篇关于我应该在Dropbox外部保留我的Git文件夹吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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