3 Star 0 Fork 0

Gitee 极速下载/git-tfs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/git-tfs/git-tfs
克隆/下载
init.md 2.04 KB
一键复制 编辑 原始数据 按行查看 历史

Summary

The init command creates a new git repository, initialized from a TFS source tree (without fetching the changesets). Fetching changeset should be done with fetch command.

Prefer the clone command to initialize and fetch changesets from a TFS repository!

Synopsis

Usage: git-tfs init [options] tfs-url-or-instance-name repository-path [git-repository]
  -h, -H, --help
  -V, --version
  -d, --debug                Show debug output about everything git-tfs does
  -i, --tfs-remote, --remote, --id=VALUE
                             The remote ID of the TFS to interact with
                               default: default
      --template=VALUE       Passed to git-init
      --shared[=VALUE]       Passed to git-init
      --initial-branch=VALUE Passed to git-init (requires Git >= 2.28.0)
      --autocrlf=VALUE       Normalize line endings (default: false)
      --ignorecase=VALUE     Ignore case in file paths (default: system
                                 default)
      --bare                 clone the TFS repository in a bare git repository
      --workspace=VALUE      set tfs workspace to a specific folder (a
                               shorter path is better!)
      --ignore-regex=VALUE   a regex of files to ignore
  -u, --username=VALUE       TFS username
  -p, --password=VALUE       TFS password
      --no-parallel          Do not do parallel requests to TFS

Examples

Simple

To initialize $/Project1 from your TFS 2010 server tfs into a new directory Project1, do this:

git tfs init http://tfs:8080/tfs/DefaultCollection $/Project1

then, to retrieve tfs changesets do this :

git tfs pull

Note: [pull] is here preferred to [fetch], otherwise the git branch master won't be created

See also

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/git-tfs.git
git@gitee.com:mirrors/git-tfs.git
mirrors
git-tfs
git-tfs
master

搜索帮助