Skip to content

Mount a specific revision of a git repo as FUSE filesystem

License

Notifications You must be signed in to change notification settings

taterbase/git-mount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#git-mount

git-mount let's you mount your repo as a filesystem based on a revision.

##Install Please note, git-mount requires FUSE to be installed on your system to work. If you're on OS X you can use FUSE for OS X

You can find the latest binaries on the releases page or if you have Go you can build git-mount directly from source.

go get taterbase.me/git-mount
go install taterbase.me/git-mount

##Usage

Change to a directory that is an existing git repo. Once inside you can call git-mount directly

git-mount HEAD

Or if git-mount is on your path you can just call it like an extension

git mount 2fdcb3ae

If only one argument is passed in git-mount treats that argument as a treeish. Based on your current location in the repo it will mount all files and folders from that level and deeper. git-mount will only ever descend files, never ascend, so if you are in folder foo and folder foo is the top level of th repo the whole repo will be mounted. If you go into foo/bar and call git-mount {treeish} then only bar and its descendants will be mounted.

You can also pass a path to git-mount

git mount HEAD~2 public/img

This will tell git-mount to only mount the specified path and its descendants.

About

Mount a specific revision of a git repo as FUSE filesystem

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages