.\" Automatically generated by Pandoc 2.5 .\" .TH "GIT\-FTP" "1" "2020\-02\-03" "Git\-ftp 1.6.0" "" .hy .PP This is the manual for version 1.6.0\-UNRELEASED. Please consider the changelog (../CHANGELOG.md) or select your version from the \f[I]Branch > Tags\f[R] select above to see the manual for another version. .SH NAME .PP Git\-ftp \- Git powered FTP client written as shell script. .SH SYNOPSIS .PP \f[I]git\-ftp\f[R] [] [] .SH DESCRIPTION .PP Git\-ftp is an FTP client using Git (http://git-scm.org) to determine which local files to upload or which files to delete on the remote host. .PP It saves the deployed state by uploading the SHA1 hash in the \f[C].git\-ftp.log\f[R] file. There is no need for Git to be installed on the remote host. .PP Even if you play with different branches, git\-ftp knows which files are different and handles only those files. That saves time and bandwidth. .SH ACTIONS .TP .B \f[C]init\f[R] Uploads all git\-tracked non\-ignored files to the remote server and creates the \f[C].git\-ftp.log\f[R] file containing the SHA1 of the latest commit. .TP .B \f[C]catchup\f[R] Creates or updates the \f[C].git\-ftp.log\f[R] file on the remote host. It assumes that you uploaded all other files already. You might have done that with another program. .TP .B \f[C]push\f[R] Uploads files that have changed and deletes files that have been deleted since the last upload. If you are using GIT LFS, this uploads LFS link files, not large files (stored on LFS server). To upload the LFS tracked files, run \f[C]git lfs pull\f[R] before \f[C]git ftp push\f[R]: LFS link files will be replaced with large files so they can be uploaded. .TP .B \f[C]download\f[R] (EXPERIMENTAL) Downloads changes from the remote host into your working tree. This feature needs lftp to be installed and does not use any power of Git. WARNING: It can delete local untracked files that are not listed in your \f[C].git\-ftp\-ignore\f[R] file. .TP .B \f[C]pull\f[R] (EXPERIMENTAL) Downloads changes from the remote host into a separate commit and merges that into your current branch. If you just want to download the files without a merge, consider \f[C]download\f[R]. This feature needs lftp to be installed. .TP .B \f[C]snapshot\f[R] (EXPERIMENTAL) Downloads files into a new Git repository. Takes an additional argument as local destination directory. Example: \[ga]git\-ftp snapshot ftp://example.com/public_html projects/example\[ga] This feature needs lftp to be installed. .TP .B \f[C]show\f[R] Downloads last uploaded SHA1 from log and hooks \[ga]git show\[ga]. .TP .B \f[C]log\f[R] Downloads last uploaded SHA1 from log and hooks \[ga]git log\[ga]. .TP .B \f[C]add\-scope \f[R] Creates a new scope (e.g.\ dev, production, testing, foobar). This is a wrapper action over git\-config. See \f[B]SCOPES\f[R] section for more information. .TP .B \f[C]remove\-scope \f[R] Remove a scope. .TP .B \f[C]help\f[R] Shows a help screen. .SH OPTIONS .TP .B \f[C]\-u [username]\f[R], \f[C]\-\-user [username]\f[R] FTP login name. If no argument is given, local user will be taken. .TP .B \f[C]\-p [password]\f[R], \f[C]\-\-passwd [password]\f[R] FTP password. See \f[C]\-P\f[R] for interactive password prompt. (note) .TP .B \f[C]\-P\f[R], \f[C]\-\-ask\-passwd\f[R] Ask for FTP password interactively. .TP .B \f[C]\-k [[account]\[at][host]]\f[R], \f[C]\-\-keychain [[account]\[at][host]]\f[R] FTP password from KeyChain (macOS only). .TP .B \f[C]\-a\f[R], \f[C]\-\-all\f[R] Uploads all files of current Git checkout. .TP .B \f[C]\-c\f[R], \f[C]\-\-commit\f[R] Sets SHA1 hash of last deployed commit by option. .TP .B \f[C]\-A\f[R], \f[C]\-\-active\f[R] Uses FTP active mode. This works only if you have either no firewall and a direct connection to the server or an FTP aware firewall. If you don\[cq]t know what it means, you probably won\[cq]t need it. .TP .B \f[C]\-b [branch]\f[R], \f[C]\-\-branch [branch]\f[R] Push a specific branch .TP .B \f[C]\-s [scope]\f[R], \f[C]\-\-scope [scope]\f[R] Using a scope (e.g.\ dev, production, testing, foobar). See \f[B]SCOPE\f[R] and \f[B]DEFAULTS\f[R] section for more information. .TP .B \f[C]\-l\f[R], \f[C]\-\-lock\f[R] Enable remote locking. .TP .B \f[C]\-D\f[R], \f[C]\-\-dry\-run\f[R] Does not upload or delete anything, but tries to get the \f[C].git\-ftp.log\f[R] file from remote host. .TP .B \f[C]\-f\f[R], \f[C]\-\-force\f[R] Does not ask any questions, it just does. .TP .B \f[C]\-n\f[R], \f[C]\-\-silent\f[R] Be silent. .TP .B \f[C]\-h\f[R], \f[C]\-\-help\f[R] Prints some usage information. .TP .B \f[C]\-v\f[R], \f[C]\-\-verbose\f[R] Be verbose. .TP .B \f[C]\-vv\f[R] Be as verbose as possible. Useful for debug information. .TP .B \f[C]\-\-remote\-root\f[R] Specifies the remote root directory to deploy to. The remote path in the URL is ignored. .TP .B \f[C]\-\-syncroot\f[R] Specifies a local directory to sync from as if it were the git project root path. .TP .B \f[C]\-\-key\f[R] SSH private key file name for SFTP. .TP .B \f[C]\-\-pubkey\f[R] SSH public key file name. Used with \[en]key option. .TP .B \f[C]\-\-insecure\f[R] Don\[cq]t verify server\[cq]s certificate. .TP .B \f[C]\-\-cacert \f[R] Use as CA certificate store. Useful when a server has a self\-signed certificate. .TP .B \f[C]\-\-disable\-epsv\f[R] Tell curl to disable the use of the EPSV command when doing passive FTP transfers. Curl will normally always first attempt to use EPSV before PASV, but with this option, it will not try using EPSV. .TP .B \f[C]\-\-no\-commit\f[R] Stop while merging downloaded changes during the pull action. A commit is made anyway, but the merge is interrupted. If you just want to download the files you could also consider the action \f[C]download\f[R]. .TP .B \f[C]\-\-changed\-only\f[R] During the ftp mirror operation during a pull command, consider only the files changed since the deployed commit. .TP .B \f[C]\-\-no\-verify\f[R] Bypass the pre\-ftp\-push hook. See \f[B]HOOKS\f[R] section. .TP .B \f[C]\-\-enable\-post\-errors\f[R] Fails if post\-ftp\-push raises an error. .TP .B \f[C]\-\-auto\-init\f[R] Automatically run init action when running push action .TP .B \f[C]\-\-version\f[R] Prints version. .TP .B \f[C]\-x [protocol://]host[:port]\f[R], \f[C]\-\-proxy [protocol://]host[:port]\f[R] Use the specified proxy. This option is passed to curl. See the curl manual for more information. .SH URL .PP The scheme of an URL is what you would expect .IP .nf \f[C] protocol://host.domain.tld:port/path \f[R] .fi .PP Below a full featured URL to \f[I]host.example.com\f[R] on port \f[I]2121\f[R] to path \f[I]mypath\f[R] using protocol \f[I]ftp\f[R]: .IP .nf \f[C] ftp://host.example.com:2121/mypath \f[R] .fi .PP But, there is not just FTP. Supported protocols are: .TP .B \f[C]ftp://...\f[R] FTP (default if no protocol is set) .TP .B \f[C]sftp://...\f[R] SFTP .TP .B \f[C]ftps://...\f[R] FTPS .TP .B \f[C]ftpes://...\f[R] FTP over explicit SSL (FTPES) protocol .SH EXAMPLES .SS FIRST UPLOADS .PP Upload your files to an FTP server the first time: .IP .nf \f[C] $ git ftp init \-u \[dq]john\[dq] \-P \[dq]ftp://example.com/public_html\[dq] \f[R] .fi .PP It will authenticate with the username \f[C]john\f[R] and ask for the password. By default, it tries to transfer data in EPSV mode. Depending on the network and server configuration, that may fail. You can try to add the \f[C]\-\-disable\-epsv\f[R] option to use the IPv4 passive FTP connection (PASV). In rare circumstances, you can use \f[C]\-\-active\f[R] for the original FTP transfer mode. These options do not apply to SFTP. .PP You are less likely to face connection problems with SFTP. But be aware of the different handling of relative and absolute paths. If the directory \f[C]public_html\f[R] is in the home directory on the server, then upload like this: .IP .nf \f[C] $ git ftp init \-u \[dq]john\[dq] \-\-key \[dq]$HOME/.ssh/id_rsa\[dq] \[dq]sftp://example.com/\[ti]/public_html\[dq] \f[R] .fi .PP Otherwise it will use an absolute path, for example: .IP .nf \f[C] $ git ftp init \-u \[dq]john\[dq] \-\-key \[dq]$HOME/.ssh/id_rsa\[dq] \[dq]sftp://example.com/var/www\[dq] \f[R] .fi .PP On some systems Git\-ftp fails to verify the server\[cq]s fingerprint. You can then use the \f[C]\-\-insecure\f[R] option to skip the verification. That will leave you vulnerable to man\-in\-the\-middle attacks, but is still more secure than plain FTP. .PP Git\-ftp guesses the path of the public key file corresponding to your private key file. If you just have a private key, for example a .pem file, you need Git\-ftp version 1.3.4 and Curl version 7.39.0 or newer. If you have an older version of Git\-ftp or Curl, you can create the public key with the ssh\-keygen command: .IP .nf \f[C] $ ssh\-keygen \-y \-f key.pem > key.pem.pub \f[R] .fi .SS RESET THE UPLOADED STATE .PP Many people already uploaded their files to the server. If you want to mark the uploaded version as the same as your local branch: .IP .nf \f[C] $ git ftp catchup \f[R] .fi .PP This example omits options like \f[C]\-\-user\f[R], \f[C]\-\-password\f[R] and \f[C]url\f[R]. See DEFAULTS below to learn how to store your configuration so that you don\[cq]t need to repeat it. .PP After you stored the commit id of the uploaded commit via \f[C]init\f[R] or \f[C]catchup\f[R], you can then upload any new commits: .IP .nf \f[C] $ git ftp push \f[R] .fi .PP If you discovered a bug in the last uploaded version and you want to go back by three commits: .IP .nf \f[C] $ git checkout HEAD\[ti]3 $ git ftp push \f[R] .fi .PP Or maybe some files got changed on the server and you want to upload all changes between branch \f[C]master\f[R] and branch \f[C]develop\f[R]: .IP .nf \f[C] $ git checkout develop # This is the version which is uploaded. $ git ftp push \-\-commit master # Upload changes compared to master. \f[R] .fi .SH DEFAULTS .PP Don\[cq]t repeat yourself. Setting config defaults for git\-ftp in .git/config .IP .nf \f[C] $ git config git\-ftp.<(url|user|password|syncroot|cacert|keychain|...)> \f[R] .fi .PP Everyone likes examples: .IP .nf \f[C] $ git config git\-ftp.user john $ git config git\-ftp.url ftp.example.com $ git config git\-ftp.password secr3t $ git config git\-ftp.syncroot path/dir $ git config git\-ftp.cacert caCertStore $ git config git\-ftp.deployedsha1file mySHA1File $ git config git\-ftp.insecure 1 $ git config git\-ftp.key \[ti]/.ssh/id_rsa $ git config git\-ftp.keychain user\[at]example.com $ git config git\-ftp.remote\-root htdocs $ git config git\-ftp.disable\-epsv 1 $ git config git\-ftp.no\-commit 1 \f[R] .fi .PP After setting those defaults, push to \f[I]john\[at]ftp.example.com\f[R] is as simple as .IP .nf \f[C] $ git ftp push \f[R] .fi .PP If you run into issues with setting up your password please check this note. .SH SCOPES .PP Need different config defaults per each system or environment? Use the so called scope feature. .PP Useful if you use multi environment development. Like a development, testing and a production environment. .IP .nf \f[C] $ git config git\-ftp..<(url|user|password|syncroot|cacert)> \f[R] .fi .PP So in the case below you would set a testing scope and a production scope. .PP Here we set the params for the scope \[lq]testing\[rq] .IP .nf \f[C] $ git config git\-ftp.testing.url ftp.testing.com:8080/foobar\-path $ git config git\-ftp.testing.password simp3l \f[R] .fi .PP Here we set the params for the scope \[lq]production\[rq] .IP .nf \f[C] $ git config git\-ftp.production.user manager $ git config git\-ftp.production.url live.example.com $ git config git\-ftp.production.password n0tThatSimp3l \f[R] .fi .PP Pushing to scope \f[I]testing\f[R] alias \f[I]john\[at]ftp.testing.com:8080/foobar\-path\f[R] using password \f[I]simp3l\f[R] .IP .nf \f[C] $ git ftp push \-s testing \f[R] .fi .PP \f[I]Note:\f[R] The \f[B]SCOPE\f[R] feature can be mixed with the \f[B]DEFAULTS\f[R] feature. Because we didn\[cq]t set the user for this scope, git\-ftp uses \f[I]john\f[R] as user as set before in \f[B]DEFAULTS\f[R]. .PP Pushing to scope \f[I]production\f[R] alias \f[I]manager\[at]live.example.com\f[R] using password \f[I]n0tThatSimp3l\f[R] .IP .nf \f[C] $ git ftp push \-s production \f[R] .fi .PP \f[I]Hint:\f[R] If your scope name is identical with your branch name. You can skip the scope argument, e.g.\ if your current branch is \[lq]production\[rq]: .IP .nf \f[C] $ git ftp push \-s \f[R] .fi .PP You can also create scopes using the add\-scope action. All settings can be defined in the URL. Here we create the \f[I]production\f[R] scope using add\-scope .IP .nf \f[C] $ git ftp add\-scope production ftp://manager:n0tThatSimp3l\[at]live.example.com/foobar\-path \f[R] .fi .PP Deleting scopes is easy using the \f[C]remove\-scope\f[R] action. .IP .nf \f[C] $ git ftp remove\-scope production \f[R] .fi .SH IGNORING FILES TO BE SYNCED .PP Add patterns to \f[C].git\-ftp\-ignore\f[R] and all matching file names will be ignored. The patterns are interpreted as shell glob patterns since version 1.1.0. Before version 1.1.0, patterns were interpreted as regular expressions. Here are some glob pattern examples: .PP Ignoring everything in a directory named \f[C]config\f[R]: .IP .nf \f[C] config/* \f[R] .fi .PP Ignoring all files having extension \f[C].txt\f[R]: .IP .nf \f[C] *.txt \f[R] .fi .PP Ignoring a single file called \f[C]foobar.txt\f[R]: .IP .nf \f[C] foobar.txt \f[R] .fi .PP Ignoring Git related files: .IP .nf \f[C] \&.gitignore */.gitignore # ignore files in sub directories */.gitkeep \&.git\-ftp\-ignore \&.git\-ftp\-include \&.gitlab\-ci.yml \f[R] .fi .SH SYNCING UNTRACKED FILES .PP The \f[C].git\-ftp\-include\f[R] file specifies intentionally untracked files that Git\-ftp should upload. If you have a file that should always be uploaded, add a line beginning with ! followed by the file\[cq]s name. For example, if you have a file called VERSION.txt then add the following line: .IP .nf \f[C] !VERSION.txt \f[R] .fi .PP If you have a file that should be uploaded whenever a tracked file changes, add a line beginning with the untracked file\[cq]s name followed by a colon and the tracked file\[cq]s name. For example, if you have a CSS file compiled from an SCSS file then add the following line: .IP .nf \f[C] css/style.css:scss/style.scss \f[R] .fi .PP If you have multiple source files, you can add multiple lines for each of them. Whenever one of the tracked files changes, the upload of the paired untracked file will be triggered. .IP .nf \f[C] css/style.css:scss/style.scss css/style.css:scss/mixins.scss \f[R] .fi .PP If a local untracked file is deleted, any change of a paired tracked file will trigger the deletion of the remote file on the server. .PP All paths are usually relative to the Git working directory. When using the \f[C]\-\-syncroot\f[R] option, paths of tracked files (right side of the colon) are relative to the set syncroot. Example: .IP .nf \f[C] # upload \[dq]html/style.css\[dq] triggered by html/style.scss # with syncroot \[dq]html\[dq] html/style.css:style.scss \f[R] .fi .PP If your \f[I]source\f[R] file is outside the syncroot, prefix it with a / and define a path relative to the Git working directory. For example: .IP .nf \f[C] # upload \[dq]dist/style.css\[dq] with syncroot \[dq]dist\[dq] dist/style.css:/src/style.scss \f[R] .fi .PP It is also possible to upload whole directories. For example, if you use a package manager like composer, you can upload all vendor packages when the file composer.lock changes: .IP .nf \f[C] vendor/:composer.lock \f[R] .fi .PP But keep in mind that this will upload all files in the vendor folder, even those that are on the server already. And it will not delete files from that directory if local files are deleted. .SH DOWNLOADING FILES (EXPERIMENTAL) .PP \f[B]WARNING:\f[R] It can delete local untracked files that are not listed in your \f[C].git\-ftp\-ignore\f[R] file. .PP You can use git\-ftp to download from the remote host into your repository. You will need to install the lftp command line tool for that. .IP .nf \f[C] git ftp download \f[R] .fi .PP It uses lftp\[cq]s mirror command to download all files that are different on the remote host. You can inspect the changes with git\-diff. But if you have some local commits that have not been uploaded to the remote host, you may not compare to the right version. You need to compare the downloaded files to the commit that was uploaded last. This magic is done automatically by .IP .nf \f[C] git ftp pull \f[R] .fi .PP It does the following steps for you: .IP .nf \f[C] git checkout git ftp download git add \-\-all git commit \-m \[aq][git\-ftp] remotely untracked modifications\[aq] git ftp catchup git checkout git merge \f[R] .fi .PP If you want to inspect the downloaded changes before merging them into your current branch, add the option \f[C]\-\-no\-commit\f[R]. It will stop during the merge at the end of the pull action. You can inspect the merge result first and can then decide to continue or abort. .IP .nf \f[C] git ftp pull \-\-no\-commit # inspect the result and commit them git commit # or abort the merge git merge \-\-abort \f[R] .fi .PP If you abort the merge, the downloaded changes will stay in an unreferenced commit until the Git garbage collector is run. The commit id will be printed so that you can tag it or create a new branch. .SH HOOKS (EXPERIMENTAL) .PP \f[B]This feature is experimental. The interface may change.\f[R] .PP Git\-ftp supports client\-side hook scripts during the init and the push action. .PP \f[C]pre\-ftp\-push\f[R] is called just before the upload to the server starts, but after the changeset of files was generated. It can be bypassed with the \[en]no\-verify option. .PP The hook is called with four parameters. The first is the used scope or the host name if no scope is used. The second parameter is the destination URL. The third is the local commit id which is going to be uploaded and the fourth is the remote commit id on the server which is going to be updated. .PP The standard input is a list of all filenames to sync. Each file is preceeded by A or D followed by a space. A means that this file is scheduled for upload, D means it\[cq]s scheduled for deletion. All entries are separated by the NUL byte. This list is different to git diff, because it has been changed by the rules of the \f[C].git\-ftp\-include\f[R] file and the \f[C].git\-ftp\-ignore\f[R] file. .PP Exiting with non\-zero status from this script causes Git\-ftp to abort and exit with status 9. .PP An example script is: .IP .nf \f[C] #!/bin/bash # # An example hook script to verify what is about to be uploaded. # # Called by \[dq]git ftp push\[dq] after it has checked the remote status, but before # anything has been pushed. If this script exits with a non\-zero status nothing # will be pushed. # # This hook is called with the following parameters: # # $1 \-\- Scope name if set or host name of the remote # $2 \-\- URL to which the upload is being done # $3 \-\- Local commit id which is being uploaded # $4 \-\- Remote commit id which is on the server # # Information about the files which are being uploaded or deleted is supplied # as NUL separated entries to the standard input in the form: # # # # The status is either A for upload or D for delete. The path contains the # path to the local file. It contains the syncroot if set. # # This sample shows how to prevent upload of files containing the word TODO. remote=\[dq]$1\[dq] url=\[dq]$2\[dq] local_sha=\[dq]$3\[dq] remote_sha=\[dq]$4\[dq] while read \-r \-d \[aq]\[aq] status file do if [ \[dq]$status\[dq] = \[dq]A\[dq] ] then if grep \[aq]TODO\[aq] \[dq]$file\[dq]; then echo \[dq]TODO found in file $file, not uploading.\[dq] exit 1 fi fi done exit 0 \f[R] .fi .PP \f[C]post\-ftp\-push\f[R] is called after the transfer has been finished. The standard input is empty, but the parameters are the same as given to the \f[C]pre\-ftp\-push\f[R] hook. This hook is \f[B]not\f[R] bypassed by the \[en]no\-verify option. It is meant primarily for notification and its exit status does not have any effect. .SH PASSWORDS .PP If your password contains special characters you have to take it with care. In most cases it is a good idea to quote passwords with single quotes: .IP .nf \f[C] \-\-passwd \[aq]#my$fancy!secret\[aq] \f[R] .fi .PP Mostly \f[C]\-\-ask\-passwd\f[R] works even if \f[C]\-\-passwd\f[R] does not work. So maybe you can give this a try. .PP If your password starts with a hyphen/dash (\f[C]\-\f[R]) even quoting might fail. This is by design (https://github.com/git-ftp/git-ftp/issues/468) and will not be fixed. In this case you can use one of the other options to set your password: the defaults feature using \f[C]git config\f[R], \f[C]\-\-ask\-passwd\f[R] or \f[C]\[ti]/.netrc\f[R]. .PP Quoting also works if a default is set with \f[C]git config\f[R]: .IP .nf \f[C] $ git config git\-ftp.password \[aq]#my$fancy!secret\[aq] \f[R] .fi .SS NETRC .PP In the backend, Git\-ftp uses curl. This means \f[C]\[ti]/.netrc\f[R] could be used beside the other options of Git\-ftp to authenticate. .IP .nf \f[C] $ editor \[ti]/.netrc machine ftp.example.com login john password SECRET \f[R] .fi .PP With git\-ftp the credentials stored in this file are used if no username is set. For example, if you set up your .netrc file like this you can just call .IP .nf \f[C] git ftp init ftp.example.com \f[R] .fi .PP Of course this can be combined with the defaults feature to set config defaults for other options as well. .SS Keychain on macOS .PP On macOS you can use the built in keychain to store and get your passwords. .PP You can use this feature by using the option \f[C]\-\-keychain\f[R] in your command: .IP .nf \f[C] $ git ftp init \-\-keychain account\[at]host ftpes://host \f[R] .fi .PP You can omit the value for this option. Then git\-ftp will guess the account and hostname from user and url. .PP Or you can set a config for this, so you don\[cq]t need to repeat yourself (see defaults for details): .IP .nf \f[C] $ git config git\-ftp.keychain account\[at]host \f[R] .fi .PP You can omit the hostname here. If there is no \f[C]\[at]\f[R] in the config value git\-ftp will guess the hostname from url. .PP If you run a command using the keychain feature, the system might ask you if git\-ftp is allowed to access the keychain entry. If the keychain is locked you have to enter the keychain password (not the value of the entry), sometimes twice. .PP If your password is not in your keychain yet it is recommended adding it using the following command: .IP .nf \f[C] $ security add\-internet\-password \-a account \-r \[dq]ftp \[dq] \-s host \-w secr3t \f[R] .fi .PP The options are: \- \f[C]\-a\f[R]: user account \- \f[C]\-r\f[R]: protocol; has to be exactly 4 characters long, so if you use \f[C]FTP\f[R] it should be \f[C]\[dq]ftp \[dq]\f[R], for \f[C]FTPS\f[R] and \f[C]FTPES\f[R] use \f[C]ftps\f[R] and for SSH with password auth you can use \f[C]\[dq]ftp \[dq]\f[R] as well. \- \f[C]\-s\f[R]: your host name; includes subdomains but no paths \- \f[C]\-w\f[R]: password .PP You can omit the option \f[C]\-r\f[R] and everything will work fine, but the \f[I]Keychain Access\f[R] Utility will not show the server in the field \[lq]Where:\[rq]. This is only shown if \f[C]\-r\f[R] and \f[C]\-s\f[R] are set both. .PD 0 .P .PD If you create a keychain entry with the \f[I]Keychain Access\f[R] Utility it creates a generic password and not an internet password. Therefore, unfortunately, this will not work. .PP Please not that the keychain entry can not be used for password protected private keys in SSH. .SH EXIT CODES .PP There are a bunch of different error codes and their corresponding error messages that may appear during bad conditions. At the time of this writing, the exit codes are: .TP .B \f[C]1\f[R] Unknown error .TP .B \f[C]2\f[R] Wrong Usage .TP .B \f[C]3\f[R] Missing arguments .TP .B \f[C]4\f[R] Error while uploading .TP .B \f[C]5\f[R] Error while downloading .TP .B \f[C]6\f[R] Unknown protocol .TP .B \f[C]7\f[R] Remote locked .TP .B \f[C]8\f[R] Not a Git project .TP .B \f[C]9\f[R] The \f[C]pre\-ftp\-push\f[R] hook failed .TP .B \f[C]10\f[R] A local file operation like \f[C]cd\f[R] or \f[C]mkdir\f[R] failed .SH KNOWN ISSUES & BUGS .PP The upstream BTS can be found at . .SH AUTHORS .PP Git\-ftp was started by Rene Moser and is currently maintained by Maikel Linke. Numerous contributions have come from GitHub users. See the AUTHORS file for an incomplete list of contributors.