GIT和TFS关联命令行

Last login: Wed May  8 13:52:46 on ttys002
SongtekiMacBook-Pro:~ songjunbao$ git-tf
usage: git-tf [--version] [--help] [--quiet|-q|--verbose] [<command...>]


The git-tf commands are:
   help       Displays usage information
   clone      Initializes a git repository from a TFS path
   configure  Configures an existing git repository to add to TFS
   checkin    Checks in changes to a TFS folder
   fetch      Fetch the latest code from TFS into FETCH_HEAD
   pull       Pulls the latest code from TFS and merge/rebase the changes into master
   shelve     Shelves the changes to a TFS folder
   shelvesets Lists the shelvesets available on the server. Provides a way to delete shelvesets
   unshelve   Unshelves a shelveset from TFS into the repository
SongtekiMacBook-Pro:~ songjunbao$ git-tf clone http://192.168.1.100:8080/tfs/MyAoFang/IOSForAoFang
git-tf: serverpath is a required argument
git-tf: usage: git-tf [--help] [--quiet|-q|--verbose] [--version=<version>] [--bare] [--deep|--depth=<num>|--shallow] [--tag|--no-tag] [--mentions] <projectcollection> <serverpath> [<directory>]
SongtekiMacBook-Pro:~ songjunbao$ git-tf -help
git-tf: argument must not be empty
SongtekiMacBook-Pro:~ songjunbao$ git-tf --help
usage: git-tf [--version] [--help] [--quiet|-q|--verbose] [<command...>]


The git-tf commands are:
   help       Displays usage information
   clone      Initializes a git repository from a TFS path
   configure  Configures an existing git repository to add to TFS
   checkin    Checks in changes to a TFS folder
   fetch      Fetch the latest code from TFS into FETCH_HEAD
   pull       Pulls the latest code from TFS and merge/rebase the changes into master
   shelve     Shelves the changes to a TFS folder
   shelvesets Lists the shelvesets available on the server. Provides a way to delete shelvesets
   unshelve   Unshelves a shelveset from TFS into the repository
SongtekiMacBook-Pro:~ songjunbao$ git-tf --clone http://192.168.1.100:8080/tfs/MyAoFang/IOSForAoFang
git-tf: 'http://192.168.1.100:8080/tfs/MyAoFang/IOSForAoFang' is not a git-tf command.  See git-tf --help.
SongtekiMacBook-Pro:~ songjunbao$ git-tf clone http://192.168.1.100:8080/tfs/MyAoFang/IOSForAoFang
git-tf: serverpath is a required argument
git-tf: usage: git-tf [--help] [--quiet|-q|--verbose] [--version=<version>] [--bare] [--deep|--depth=<num>|--shallow] [--tag|--no-tag] [--mentions] <projectcollection> <serverpath> [<directory>]
SongtekiMacBook-Pro:~ songjunbao$ git-tf clone --help
usage: git-tf clone [--help] [--quiet|-q|--verbose] [--version=<version>]
[--bare] [--deep|--depth=<num>|--shallow] [--tag|--no-tag] [--mentions]
<projectcollection> <serverpath> [<directory>]


Arguments:
    --help                Displays usage information
    --quiet, -q, --verbose
                          Determines the output detail level
    --version=<version>   The TFS version to clone
    --bare                Creates a "bare" git repository. The directory
                          created will be the git repository itself, instead
                          of creating a working directory with a .git
                          directory underneath
    --deep, --depth=<num>, --shallow
                          Creates a shallow clone of the specified depth, or a
                          deep clone of all TFS changesets, and sets the
                          default depth for fetch, pull, and check in
                          operations (default: 1)
    --tag, --no-tag       Determine whether to tag all commits that map to
                          changesets downloaded from TFS (default: true) 
    --mentions            Add references in the commit comments for any work
                          items linked to the corresponding changeset.
    <projectcollection>   The TFS project collection URL
    <serverpath>          The TFS server path to clone
    <directory>           The name of a new directory to clone into.  If the
                          directory is not specified, the name of the TFS
                          folder will be used.  If this directory exists, it
                          must be empty


Clones a path from Microsoft Team Foundation Server, creating a new git
repository.
SongtekiMacBook-Pro:~ songjunbao$ git-tf clone http://192.168.1.100:8080/tfs/MyAoFang $/IOSForAoFang
Username: hwh
Password: 
Connecting to TFS...
Cloning $/IOSForAoFang into /Users/songjunbao/IOSForAoFang: 100%, done.        
Cloned changeset 3177 as 7daec44
SongtekiMacBook-Pro:~ songjunbao$ checkin
-bash: checkin: command not found
SongtekiMacBook-Pro:~ songjunbao$ cd /Users/Songjunbao/桌面/TestProject
-bash: cd: /Users/Songjunbao/桌面/TestProject: No such file or directory
SongtekiMacBook-Pro:~ songjunbao$ cd ~
SongtekiMacBook-Pro:~ songjunbao$ cd /Users/Songjunbao/桌面/TestProject
-bash: cd: /Users/Songjunbao/桌面/TestProject: No such file or directory
SongtekiMacBook-Pro:~ songjunbao$ cd /users
SongtekiMacBook-Pro:users songjunbao$ cd Songjunbao
SongtekiMacBook-Pro:Songjunbao songjunbao$ ls
Desktop Downloads IOSForAoFang Movies Pictures
Documents Git-Tf Library Music Public
SongtekiMacBook-Pro:Songjunbao songjunbao$ cd desktop
SongtekiMacBook-Pro:desktop songjunbao$ ls
TempProject xcode_4.5.dmg
TestProject 重要DEMO
git-tf-2.0.2.20130214.zip 项目资料
SongtekiMacBook-Pro:desktop songjunbao$ cd testproject
SongtekiMacBook-Pro:testproject songjunbao$ ls
TestPopuwindow TestProject TestProject.xcodeproj
SongtekiMacBook-Pro:testproject songjunbao$ git-tf init
git-tf: 'init' is not a git-tf command.  See git-tf --help.
SongtekiMacBook-Pro:testproject songjunbao$ git-tf --init
usage: git-tf [--version] [--help] [--quiet|-q|--verbose] [<command...>]


The git-tf commands are:
   help       Displays usage information
   clone      Initializes a git repository from a TFS path
   configure  Configures an existing git repository to add to TFS
   checkin    Checks in changes to a TFS folder
   fetch      Fetch the latest code from TFS into FETCH_HEAD
   pull       Pulls the latest code from TFS and merge/rebase the changes into master
   shelve     Shelves the changes to a TFS folder
   shelvesets Lists the shelvesets available on the server. Provides a way to delete shelvesets
   unshelve   Unshelves a shelveset from TFS into the repository
SongtekiMacBook-Pro:testproject songjunbao$ git
-bash: git: command not found
SongtekiMacBook-Pro:testproject songjunbao$ git-tf checkin
git-tf: this git repository is not configured to use git-tf
SongtekiMacBook-Pro:testproject songjunbao$ git-tf configure
git-tf: the git repository is not yet configured to work with TFS
SongtekiMacBook-Pro:testproject songjunbao$ git-tf clone http://192.168.1.100:8080/tfs/MyAoFang $/IOSForAoFang
Username: hwh 
Password: 
Connecting to TFS...
Cloning $/IOSForAoFang into /Users/songjunbao/Desktop/TestProject/IOSForAoFang: 100%, done.
Cloned changeset 3177 as 7daec44
SongtekiMacBook-Pro:testproject songjunbao$ git-tf checkin
git-tf: this git repository is not configured to use git-tf
SongtekiMacBook-Pro:testproject songjunbao$ git-tf configure
git-tf: the git repository is not yet configured to work with TFS
SongtekiMacBook-Pro:testproject songjunbao$ git-tf --help
usage: git-tf [--version] [--help] [--quiet|-q|--verbose] [<command...>]


The git-tf commands are:
   help       Displays usage information
   clone      Initializes a git repository from a TFS path
   configure  Configures an existing git repository to add to TFS
   checkin    Checks in changes to a TFS folder
   fetch      Fetch the latest code from TFS into FETCH_HEAD
   pull       Pulls the latest code from TFS and merge/rebase the changes into master
   shelve     Shelves the changes to a TFS folder
   shelvesets Lists the shelvesets available on the server. Provides a way to delete shelvesets
   unshelve   Unshelves a shelveset from TFS into the repository
SongtekiMacBook-Pro:testproject songjunbao$ git-tf fetch
git-tf: this git repository is not configured to use git-tf
SongtekiMacBook-Pro:testproject songjunbao$ git
-bash: git: command not found
SongtekiMacBook-Pro:testproject songjunbao$ cd ~
SongtekiMacBook-Pro:~ songjunbao$ git
-bash: git: command not found
SongtekiMacBook-Pro:~ songjunbao$ git-tf
usage: git-tf [--version] [--help] [--quiet|-q|--verbose] [<command...>]


The git-tf commands are:
   help       Displays usage information
   clone      Initializes a git repository from a TFS path
   configure  Configures an existing git repository to add to TFS
   checkin    Checks in changes to a TFS folder
   fetch      Fetch the latest code from TFS into FETCH_HEAD
   pull       Pulls the latest code from TFS and merge/rebase the changes into master
   shelve     Shelves the changes to a TFS folder
   shelvesets Lists the shelvesets available on the server. Provides a way to delete shelvesets
   unshelve   Unshelves a shelveset from TFS into the repository
SongtekiMacBook-Pro:~ songjunbao$ configure
-bash: configure: command not found
SongtekiMacBook-Pro:~ songjunbao$ git-tf --version
git-tf version 2.0.2.20130214
SongtekiMacBook-Pro:~ songjunbao$ git-tf configure http://192.168.1.100:8080/tfs/MyAoFang $/IOSForAoFang
git-tf: not a git repository (or any of the parent directories): .git
SongtekiMacBook-Pro:~ songjunbao$ pwd
/Users/songjunbao
SongtekiMacBook-Pro:~ songjunbao$ cd desktop/testprojets
-bash: cd: desktop/testprojets: No such file or directory
SongtekiMacBook-Pro:~ songjunbao$ cd desktop/testprojet
-bash: cd: desktop/testprojet: No such file or directory
SongtekiMacBook-Pro:~ songjunbao$ pwd
/Users/songjunbao
SongtekiMacBook-Pro:~ songjunbao$ cd desktop
SongtekiMacBook-Pro:desktop songjunbao$ pwd
/Users/songjunbao/desktop
SongtekiMacBook-Pro:desktop songjunbao$ ls
TempProject xcode_4.5.dmg
TestProject 重要DEMO
git-tf-2.0.2.20130214.zip 项目资料
SongtekiMacBook-Pro:desktop songjunbao$ cd TestProject
SongtekiMacBook-Pro:TestProject songjunbao$ pwd
/Users/songjunbao/desktop/TestProject
SongtekiMacBook-Pro:TestProject songjunbao$ ls
IOSForAoFang TestProject
TestPopuwindow TestProject.xcodeproj
SongtekiMacBook-Pro:TestProject songjunbao$ ls --help
ls: illegal option -- -
usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf configure http://192.168.1.100:8080/tfs/MyAoFang $/IOSForAoFang
Configuring repository
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf checkin
Username: hwh
Password: 
Connecting to TFS...
Checking in to $/IOSForAoFang: 0%
git-tf: cannot perform the initial check in against a non-empty folder. Destination $/IOSForAoFang needs to be empty, please configure your repository against another tfs folder
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf checkin
Username: hwh
Password: 
Connecting to TFS...
Password: 
Checking in to $/IOSForAoFang: 0%
git-tf: cannot perform the initial check in against a non-empty folder. Destination $/IOSForAoFang needs to be empty, please configure your repository against another tfs folder
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf configure http://192.168.1.100:8080/tfs/MyAoFang $/IOSForAoFangTest
git-tf: nothing to configure. please specify an option to configure
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf clone http://192.168.1.100:8080/tfs/MyAoFang $/IOSForAoFangTest
Username: hwh
Password: 
Connecting to TFS...
Cloning $/IOSForAoFangTest into /Users/songjunbao/Desktop/TestProject/IOSFor...
git-tf: The item $/IOSForAoFangTest was not found in the repository at the specified version T
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf checkin
Username: hwh
Password: 
Connecting to TFS...
Checking in to $/IOSForAoFang: 0%
git-tf: cannot perform the initial check in against a non-empty folder. Destination $/IOSForAoFang needs to be empty, please configure your repository against another tfs folder
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf checkin
Username: hwh
Password: 
Connecting to TFS...
Checking in to $/IOSForAoFang: 100%, done.                            
Checked commit b4eadaf in as changeset 3184
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf fetch
Username: hwh
Password: 
Connecting to TFS...
Password: 
Fetching $/IOSForAoFang at latest changeset: 100%, done.
All files are up to date. FETCH_HEAD updated to reference changeset 3184 as commit b4eadaf.
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf checkin
Username: hwh
Password: 
Connecting to TFS...
Checking in to $/IOSForAoFang: 100%, done.                            
Checked commit ed80d5b in as changeset 3185
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf -help
git-tf: argument must not be empty
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf --help
usage: git-tf [--version] [--help] [--quiet|-q|--verbose] [<command...>]


The git-tf commands are:
   help       Displays usage information
   clone      Initializes a git repository from a TFS path
   configure  Configures an existing git repository to add to TFS
   checkin    Checks in changes to a TFS folder
   fetch      Fetch the latest code from TFS into FETCH_HEAD
   pull       Pulls the latest code from TFS and merge/rebase the changes into master
   shelve     Shelves the changes to a TFS folder
   shelvesets Lists the shelvesets available on the server. Provides a way to delete shelvesets
   unshelve   Unshelves a shelveset from TFS into the repository
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf checkin
Username: SJB     
Password: 
Connecting to TFS...
Checking in to $/IOSForAoFang: 100%, done.                            
Checked commit bbef403 in as changeset 3186
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf checkin
Username: SJB 
Password: 
Connecting to TFS...
Checking in to $/IOSForAoFang: 100%, done.                            
Checked commit b7c19d6 in as changeset 3187
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf --help
usage: git-tf [--version] [--help] [--quiet|-q|--verbose] [<command...>]


The git-tf commands are:
   help       Displays usage information
   clone      Initializes a git repository from a TFS path
   configure  Configures an existing git repository to add to TFS
   checkin    Checks in changes to a TFS folder
   fetch      Fetch the latest code from TFS into FETCH_HEAD
   pull       Pulls the latest code from TFS and merge/rebase the changes into master
   shelve     Shelves the changes to a TFS folder
   shelvesets Lists the shelvesets available on the server. Provides a way to delete shelvesets
   unshelve   Unshelves a shelveset from TFS into the repository
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf fetch
Username: SJB
Password: 
Connecting to TFS...
Fetching $/IOSForAoFang at latest changeset: 100%, done.
All files are up to date. FETCH_HEAD updated to reference changeset 3187 as commit b7c19d6.
SongtekiMacBook-Pro:TestProject songjunbao$ git-tf fetch
Username: SJB
Password: 
Connecting to TFS...
Fetching $/IOSForAoFang at latest changeset: 100%, done.
All files are up to date. FETCH_HEAD is up to date.
SongtekiMacBook-Pro:TestProject songjunbao$ 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值