git-annex-5.20150710: man/git-annex-proxy.1
.TH git-annex-proxy 1
.SH NAME
git-annex-proxy \- safely bypass direct mode guard
.PP
.SH SYNOPSIS
git annex proxy \fB\-\- git cmd [options]\fP
.PP
.SH DESCRIPTION
Only useful in a direct mode repository, this runs the specified git
command with a temporary work tree, and updates the working tree to
reflect any changes staged or committed by the git command.
.PP
For example, to revert the most recent change that was committed
to the repository:
.PP
git annex proxy \-\- git revert HEAD
.PP
To check out a past version of the repository:
.PP
git annex proxy \-\- git checkout HEAD^^
.PP
To rename a directory:
.PP
git annex proxy \-\- git mv mydir newname
.PP
To commit the changes to a specific file, first use git annex add to
stage the changes in the index, and then proxy a commit:
.PP
git annex add myfile
git annex proxy \-\- git commit myfile \-m foo
.PP
.SH SEE ALSO
git-annex(1)
.PP
git-annex\-direct(1)
.PP
.SH AUTHOR
Joey Hess <id@joeyh.name>
.PP
.PP