The quick-clone command creates a new git repository, initialized from the last change-set in a TFS source tree, ignoring the full history. Useful for making code changes or additions where past history isn't relevant.
Usage: git-tfs quick-clone [options] tfs-url-or-instance-name repository-path <git-repository-path>
where options are:
-i, --id, --tfs-remote, --remote
(Type: Value required, Value Type:[String])
An optional remote ID, useful if this repository will track multiple TFS
repositories.
-d, --debug
(Type: Flag, Value Type:[Boolean])
Show lots of output.
-H, -h, --help
(Type: Flag, Value Type:[Boolean])
ShowHelp
-V, --version
(Type: Flag, Value Type:[Boolean])
ShowVersion
--shared
(Type: Value required, Value Type:[Object])
The --shared option to pass to git-init.
--template
(Type: Value required, Value Type:[String])
The --template option to pass to git-init.
--no-metadata
(Type: Flag, Value Type:[Boolean])
If specified, git-tfs will leave out the git-tfs-id: lines at the end of every
commit.
--ignore-regex
(Type: Value required, Value Type:[String])
If specified, git-tfs will not sync any paths that match this regular expression.
--no-metadata
(Type: Flag, Value Type:[Boolean])
If specified, git-tfs will leave out the git-tfs-id: lines at the end of every
commit.
-p, --Password
(Type: Value required, Value Type:[String])
Password for TFS connection
-u, --Username
(Type: Value required, Value Type:[String])
Username for TFS connection
--ignore-regex
(Type: Value required, Value Type:[String])
If specified, git-tfs will not sync any paths that match this regular expression.
-c, --changeset
(Type: Value optional, Value Type:[Int32])
Specify a changeset to clone from
--fetch-all, --all
(Type: Flag, Value Type:[Boolean])
all
-p, --parents
(Type: Flag, Value Type:[Boolean])
parents
To clone the latest changeset in $/Project1
from your TFS 2010 server tfs
into a new directory Project1
, do this:
git tfs quick-clone http://tfs:8080/tfs/DefaultCollection $/Project1
Let's say you want to clone $/Project
, but you don't want to
clone exes.
git tfs quick-clone --ignore-regex=exe$ http://tfs:8080/tfs/DefaultCollection $/Project1