# ODrive Git Support

**URL:** <https://forum.odrive.com/t/odrive-git-support/113>\
**Category:** Feature Requests\
**Created:** [February 4, 2016, 2:29pm UTC](https://forum.odrive.com/t/odrive-git-support/113 "2016-02-04T14:29:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon36442208](https://forum.odrive.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@anon36442208](https://forum.odrive.com/u/anon36442208)\
**Post date:** [February 4, 2016, 2:29pm UTC](https://forum.odrive.com/t/odrive-git-support/113/1 "2016-02-04T14:29:15Z")

</div>

I’ve read a couple of the issues raised on this subject, and it seems like the easiest fix would just be to auto sync all sub folders from any requested folder containing a .Git folder downwards.

Just provide a dialogue stating that is what will happen, and that changes to this behaviour are possible manually, but may result in the Git repo not working as expected.  
Aka: not your fault\problem.

At the very least, I’d expect to be able to override your choices on ignored files/folders, given that it’s a service for synchronising files.  
Maybe I need/want files that you would consider unimportant.

By that same token, I’d expect to be able to select file types to ignore, and to be able to make simple rules for that purpose.

As it stands, I’m going to have to either use another sync service, or create a folder with a slightly different name, and create a symlink on any machine I use this on.

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [February 4, 2016, 5:50pm UTC](https://forum.odrive.com/t/odrive-git-support/113/2 "2016-02-04T17:50:09Z")

</div>

Thanks for reaching out.

Can you tell me how you use git in this fashion? I am always curious about these use cases. git, itself is a centralized repository, with its own syncing abilities. In fact, it allows some pretty powerful ways to manage your code centrally while keeping independent views of your work on disparate clients, along with facilitating conflict detection, content merging, etc…

---

<div class="post-metadata">

**Author:** ![anon36442208](https://forum.odrive.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@anon36442208](https://forum.odrive.com/u/anon36442208)\
**Post date:** [February 4, 2016, 6:30pm UTC](https://forum.odrive.com/t/odrive-git-support/113/3 "2016-02-04T18:30:15Z")

</div>

That would be only if you use a Git server/service.  
Sometimes I use a bare repo which would only function between machines if that folder got synchronised.

You can have a bare repo for use as your central repo, store that on your [service\drive], and make commits from a local repo to that central repo.  
So, your ODrive serves as your central repo, which falls apart if you don’t have the actual repo.

Basically, Git doesn’t work without the files.

---

<div class="post-metadata">

**Author:** ![lukeabell](https://forum.odrive.com/user_avatar/forum.odrive.com/lukeabell/32/198_2.png) [@lukeabell](https://forum.odrive.com/u/lukeabell)\
**Post date:** [March 4, 2016, 1:26am UTC](https://forum.odrive.com/t/odrive-git-support/113/4 "2016-03-04T01:26:16Z")

</div>

+1 on adding better support for .git folders

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [March 8, 2016, 2:12am UTC](https://forum.odrive.com/t/odrive-git-support/113/5 "2016-03-08T02:12:10Z")

</div>

Split this topic on March 8, 2016, 2:12am UTC

2 posts were merged into an existing topic: [YIKES! losing .xcodeproj files!](https://forum.odrive.com/t/yikes-losing-xcodeproj-files/326)

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [March 8, 2016, 2:32am UTC](https://forum.odrive.com/t/odrive-git-support/113/6 "2016-03-08T02:32:47Z")

</div>

Use cases that call for supporting git are more complex than we want to officially support, at this time. Currently we are excluding .git .gitignore from sync. This means we ignore them completely.

We are discussing adding features that would allow users to specify specific files/folder types to allow and deny.

---

<div class="post-metadata">

**Author:** ![EthanH](https://forum.odrive.com/user_avatar/forum.odrive.com/ethanh/32/324_2.png) [@EthanH](https://forum.odrive.com/u/EthanH)\
**Post date:** [March 9, 2016, 1:20am UTC](https://forum.odrive.com/t/odrive-git-support/113/7 "2016-03-09T01:20:17Z")

</div>

@Baron\_von\_Whimsy: I’m trying to follow the logic here. We use Mercurial rather than Git, but the overall situation is identical. If you use an odrive folder for the central repository, this means that every connected computer holds a copy of the entire repository. I’m not sure that this is an ideal situation. Storing your repository on a central cloud server seems preferable, as only checked out files need to be present on a client computer.

I’m unsure that odrive is a good solution in this case.

---

<div class="post-metadata">

**Author:** ![gullitmiranda](https://forum.odrive.com/user_avatar/forum.odrive.com/gullitmiranda/32/689_2.png) [@gullitmiranda](https://forum.odrive.com/u/gullitmiranda)\
**Post date:** [April 21, 2016, 7:01am UTC](https://forum.odrive.com/t/odrive-git-support/113/8 "2016-04-21T07:01:15Z")

</div>

I believe that the simplest solution that solves my problem is to have a kind of `.odrive_ignore` to define which files should be ignored.

reference: [http://sync-help.bittorrent.com/customer/portal/articles/1673122-ignoring-files-in-sync-ignorelist-](http://sync-help.bittorrent.com/customer/portal/articles/1673122-ignoring-files-in-sync-ignorelist-)

---

<div class="post-metadata">

**Author:** ![alisonh2351](https://forum.odrive.com/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@alisonh2351](https://forum.odrive.com/u/alisonh2351)\
**Post date:** [May 20, 2016, 12:01am UTC](https://forum.odrive.com/t/odrive-git-support/113/9 "2016-05-20T00:01:45Z")

</div>

I definitely want the option to sync .git folders because I sometimes use git as a file versioning system without linking it up to a remote repository. This means that any of these changes to the versioning list isn’t synced between my computers. I don’t see how supporting the syncing of .git files would be any different from syncing of any other hidden files.

---

<div class="post-metadata">

**Author:** ![md1](https://forum.odrive.com/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@md1](https://forum.odrive.com/u/md1)\
**Post date:** [May 23, 2016, 8:02am UTC](https://forum.odrive.com/t/odrive-git-support/113/10 "2016-05-23T08:02:25Z")

</div>

I just found out from this thread that none of my .git folders are syncing. As with alisonh2351, my use-case absolutely demands that I be able to include .git folders in my sync. Can the built-in ignore list be overridden? If not, that’s a dealbreaker.

---

<div class="post-metadata">

**Author:** ![hellojenbauer](https://forum.odrive.com/letter_avatar_proxy/v4/letter/h/c2a13f/32.png) [@hellojenbauer](https://forum.odrive.com/u/hellojenbauer)\
**Post date:** [May 24, 2016, 2:45am UTC](https://forum.odrive.com/t/odrive-git-support/113/11 "2016-05-24T02:45:16Z")

</div>

+1 vote to add git support!

---

<div class="post-metadata">

**Author:** ![ltmurray](https://forum.odrive.com/letter_avatar_proxy/v4/letter/l/d78d45/32.png) [@ltmurray](https://forum.odrive.com/u/ltmurray)\
**Post date:** [July 19, 2016, 8:47pm UTC](https://forum.odrive.com/t/odrive-git-support/113/12 "2016-07-19T20:47:57Z")

</div>

I just learned from this thread that many of my .git folders have been lost. I was adopting the paradigm of unsyncing closed projects (each in their own directory), but periodically need to re-access them. These projects all have data files alongside code with git versioning information saved in each code directory. If I were to pay for unlimited private repositories from a git service, I would still have to manually restore the .git repository for each project after re-syncing it, which makes odrive more of a hassle to use than it’s worth.

---

<div class="post-metadata">

**Author:** ![charles](https://forum.odrive.com/user_avatar/forum.odrive.com/charles/32/4468_2.png) [@charles](https://forum.odrive.com/u/charles)\
**Post date:** [July 24, 2016, 7:43pm UTC](https://forum.odrive.com/t/odrive-git-support/113/13 "2016-07-24T19:43:58Z")

</div>

Trialling odrive here and discovered my .git folders weren’t syncing. Found this thread. Oh dear. I was finding odrive perfect for my needs up until I found I can’t keep git repos in it. I keep a few dozen local repos in Dropbox. I don’t really need or want to put them on Github or Gitlab (not yet, anyway). I was just about ready to sign up for a full odrive subscription, but now I have to reconsider. Such a shame as the trial was going so well otherwise!

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [July 26, 2016, 7:07am UTC](https://forum.odrive.com/t/odrive-git-support/113/14 "2016-07-26T07:07:52Z")

</div>

We will be removing our .git and .gitignore exclusions in our next client release. We will post here when it is available. We would very much like feedback from the folks on this thread once that occurs.

---

<div class="post-metadata">

**Author:** ![fezmatic](https://forum.odrive.com/letter_avatar_proxy/v4/letter/f/3ab097/32.png) [@fezmatic](https://forum.odrive.com/u/fezmatic)\
**Post date:** [August 3, 2016, 9:59pm UTC](https://forum.odrive.com/t/odrive-git-support/113/15 "2016-08-03T21:59:40Z")

</div>

Agree that finding out .git folders not supported was an unpleasant surprise. Will be waiting to see how this plays out. Seems like a common use case for your current user base of early adopters.

---

<div class="post-metadata">

**Author:** ![dubaaron](https://forum.odrive.com/user_avatar/forum.odrive.com/dubaaron/32/257_2.png) [@dubaaron](https://forum.odrive.com/u/dubaaron)\
**Post date:** [August 5, 2016, 3:00am UTC](https://forum.odrive.com/t/odrive-git-support/113/16 "2016-08-05T03:00:02Z")

</div>

Thanks for bringing this to light. I, too, am wanting to use git in this way; in my case for an easy way of keeping my local dev code branch synced between my work/desktop and home/laptop.

I find it counter-intuitive that there is a secret “exclusions list” that we would’ve had no clue except for trial-and-error and then googling to find this forum.

By default, when using a program which claims to sync all files in a folder, as Joe Q. User, I expect it to sync all the files in that folder, not to have a hidden “exclusions” list which I can neither see nor edit.

Sorry to come across as a downer, but I guess I was disappointed to find this, right when I’d just upgraded to the “premium” version so I could feel safer in putting sensitive code into an encrypted folder. So, just adding my +1 here and trying to describe how I think most users would find this secret hidden exclusion list.

What else is excluded that we don’t know about?

Is it all .folders starting with a dot in the name? If so, that could cause a lot of other headaches, too, especially when one of the sync targets is a unix-like system … plenty of handy and wanted stuff is stored in hidden “dot”-folders.

Is there some use case that we’re not thinking of that would benefit from this hidden exclusion list?

PS. Thanks for making such a useful and handy product.

UPDATE: found [an explanation here](https://muut.com/odrive#!/odrive/general:odrive-not-syncing-folders) as to why .git folders were being excluded.

I can see how that might bite some people in the butt, but I think that nerfing it so that .git folders aren’t synced at all is probably going to frustrate more in the long run. The gotchas of dealing with the presence of .git folders is just something that one would need to handle as part of the learning curve in using git in that fashion, and I think users would accept that, and not expect their file-syncing tool to try and hide it from them.

(unless there was some way exposed that we could all customize our own exclusion patterns)

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [August 5, 2016, 3:27am UTC](https://forum.odrive.com/t/odrive-git-support/113/17 "2016-08-05T03:27:52Z")

</div>

Hi,  
Thanks for the feedback. You may have missed my previous post above, but we will be removing the git exclusions in our next release and I am hoping to get feedback from folks like you once we do that.

For a full list of exclusions, please refer to this area of our usage guide:

> **[Sync Changes](https://docs.odrive.com/docs/sync-changes#section--ignore-list-)**
>
> ADD NEW FILES To add new files or folders to odrive, just click and drag them into any odrive link folder or save a file directly to it. Under the hood, odrive will process the files/folders in a way to optimize a successful transfer to the cloud,...

Thanks!

---

<div class="post-metadata">

**Author:** ![dubaaron](https://forum.odrive.com/user_avatar/forum.odrive.com/dubaaron/32/257_2.png) [@dubaaron](https://forum.odrive.com/u/dubaaron)\
**Post date:** [August 5, 2016, 3:50am UTC](https://forum.odrive.com/t/odrive-git-support/113/18 "2016-08-05T03:50:19Z")

</div>

Hi Tony,

thanks. Yeah, I did see the note about removing the git exclusion, and thank you; I wanted to add my feedback anyway as another person who was frustrated by the behavior.

Thanks for the link to the list of exclusions; I can see where it makes sense to exclude most of those in most cases; but it does seem like it would be nice to have the option to sync them if desired, because who knows?

Maybe by right-clicking the files and choosing “sync”? Right now if I right-click my “.git” folder in my repository folder, none of the odrive options show up.

Either that or some way to customize exclude patterns. But then it might need to be on a per-directory basis, which I realize may make things trickier.

Thanks again Tony. : )

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [August 24, 2016, 1:56am UTC](https://forum.odrive.com/t/odrive-git-support/113/19 "2016-08-24T01:56:38Z")

</div>

Git exclusions have been removed and custom exclusions are available. More about that here: [https://docs.odrive.com/docs/sync-changes#section--custom-ignore-list-blacklist-](https://docs.odrive.com/docs/sync-changes#section--custom-ignore-list-blacklist-)

---

<div class="post-metadata">

**Author:** ![gullitmiranda](https://forum.odrive.com/user_avatar/forum.odrive.com/gullitmiranda/32/689_2.png) [@gullitmiranda](https://forum.odrive.com/u/gullitmiranda)\
**Post date:** [August 24, 2016, 11:52pm UTC](https://forum.odrive.com/t/odrive-git-support/113/20 "2016-08-24T23:52:36Z")

</div>

I think terrible the odrive sync folder `.git`. I stopped using Dropbox for development projects precisely because it did sync my git repositories, because it gives a lot of conflicts and so broke the git tree.

why not make this configurable? I already suggested this before: [ODrive Git Support](https://forum.odrive.com/t/odrive-git-support/113/8?u=gullitmiranda)

[Next page](https://forum.odrive.com/t/odrive-git-support/113.md?page=2)
