Using options

In order to use options when mounting gitfs, you need to append the options as an argument when using the mount command like this:

-o option1=value1,option2=value2,option3=value3...

All available options

NameDefaultDescription
remote_urlthe URL of the remote. The accepted formats are:
  • https://username:password@hostname.com/repo.git – for HTTP
  • username@hostname.com:repo.git – for SSH
branchmasterthe branch name to follow
repo_path/var/lib/gitfs/repo_paththe location where the repositories will be cloned
max_size10MBthe maximum file size in MBs allowed for an individual file. If set to 0, then allow any file size
userrootthe user that will mount the file system
grouprootthe group that will mount the file system
committer_nameuserthe name that will be displayed for all the commits
committer_emailuser@FQDNthe email that will be displayed for all the commits
merge_timeout5 secthe interval between idle state and commits/pushes
fetch_timeout30 secthe interval between fetches
min_idle_times10idle cycles until gitfs will go to idle mode
idle_fetch_timeout30 minthe interval between fetches, when in idle mode
logsyslogthe path of the log file. Special name syslog will log to the system logger
log_levelwarningthe logging level. One of error, warning, info, debug
debugfalsethe switch that sets the log level to debug and also enables FUSE’s debug
foregroundtruethe switch that specifies whether FUSE will work in the foreground or not
allow_othertruethe switch that overrides the security measure restricting file access to the user mounting the file system. So, all users, including root, can access the files. This option is, by default, only allowed to root, but this restriction can be removed with a configuration option described in the previous section
allow_rootfalsethe switch that’s similar to allow_other but file access is limited to the user mounting the file system and root. This option and allow_other are mutually exclusive
usernamethe username for HTTP basic auth
passwordthe password for HTTP basic auth
key$HOME/.ssh/id_rsathe path of the SSH private key. NOTE: the public key is constructed by appending .pub to this path and the file MUST exist
headset

Still need help?

Have we not answered your question? Don't worry, you can contact us for more informationContact us

card

Get updates from Presslabs

Feature announcements, how-to's and news feed

Sign up for newsletter


powered by MailChimp!