Installing

  1. Ubuntu 12.04 and 14.04 are fully supported for now.
sudo add-apt-repository ppa:presslabs/gitfs
sudo apt-get update
sudo apt-get install gitfs
  1. For using gitfs on Mac, the steps are as follows:

Prerequisites - Homebrew

brew install homebrew/fuse/gitfs

Mounting

Before mounting, you’ll need a working git repository. You can use a local repository or maybe a git service like GitHub.

In order to mount your repository to the desired directory, use:

gitfs http://your.com/repository.git /mount/directory

Directory structure

current/ – contains a snapshot of the commit that the branch’s HEAD is pointing to. Any changes made here will be automatically committed and pushed to the repository you have mounted.

history/ – contains a series of directories whose names are dates. In these directories you will find each commit’s read-only snapshot categorized by the time and SHA of that commit. Every snapshot will be read-only.

The history folder can look like this:

2014-09-15
    12:33:26-b6758e0c38
    15:52:02-68a2154362
    16:14:52-1d5e4f71ba
    16:16:40-c74a4d8078
    16:17:24-cf3f4fbad8
2014-09-17
    11:19:55-256c692b89
    14:30:25-0ab3d88431
    15:04:21-8e214eb797
2014-09-18
    11:40:06-9e154650f1
    16:05:23-cebf6b7388

The inner folders are the snapshots of their respective commits.

Keeping things up to date

gitfs automatically fetches the newest changes from your repository at a given time interval. The default delay between fetches is 30s but you can change this value with the fetch_delay argument. See Arguments for more details.

The inner folders are the snapshots of their respective commits.

Keeping things up to date

gitfs automatically fetches the newest changes from your repository at a given time interval. The default delay between fetches is 30s but you can change this value with the fetch_delay argument. See Arguments for more details.