This will delete the page "GIN CLI Config"
. Please be certain.
The GIN client allows for certain aspects of its operation to be configured.
This is accomplished by specifying key-value pairs, in YAML format, in a file called config.yml
.
The location of this file differs per platform (see below).
In addition to this global configuration, the git-annex filtering criteria can be configured for individual repositories, by placing a file called config.yml
at the root of the repository.
The following shows the default values for every configurable option
bin:
git: git
gitannex: git-annex
ssh: ssh
servers:
gin:
web:
protocol: https
host: gin.g-node.org
port: 443
git:
host: gin.g-node.org
port: 22
user: git
hostkey: "gin.g-node.org,141.84.41.219 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBE5IBgKP3nUryEFaACwY4N3jlqDx8Qw1xAxU2Xpt5V0p9RNefNnedVmnIBV6lA3n+9kT1OSbyqA/+SgsQ57nHo0="
annex:
minsize: 10M
exclude: []
gin
commandsServer configurations can (and should) be added through the gin add-server
command. This command will take care of retrieving the host key from the configured git server.
http
or https
.80
for HTTP
or 443
for HTTPS
.22
).git
. This is the name of the server-side user that handles all remote git operations.*.py
will exclude all Python source code files from the annex, adding them to git instead. Files which match a pattern are always excluded from the annex, even if they are above the minsize. Patterns should be specified as a list of strings, e.g., ["*.py", "*.md", "*.m"]
.During gin commit
and gin upload
operations, the GIN CLI decides which files should be added to the annex based on certain criteria that can be configured by the user.
The purpose of these filters is to separate things which git is well suited to handle (code and other small text files) from things which git-annex is better suited for (large binary files).
By default, the only criterion used is the file size: files below 10 MB are added to git, while files greater or equal to 10 MB are added to the annex.
Users can override this threshold in either a global or a local configuration file.
In addition to a file size threshold, users can also specify file patterns to be excluded from the annex, which implies that they will be added directly to git.
These patterns are often used to specify file extensions, such as source code or text file extensions (e.g., *.c
, *.py
, *.m
, *.txt
, *.md
) but any pattern can be used (e.g., analysis*.py
, *data*.zip
).
The client also never allows adding a file called config.yml
to the annex.
This can not be changed.
The location of the user global configuration file differs per platform:
%APPDATA%\g-node\gin\config.yml
${HOME}/Library/Application Support/g-node/gin/config.yml
${HOME}/.config/g-node/gin/config.yml
This will delete the page "GIN CLI Config"
. Please be certain.