Mac下配置Git-TF来连接TFS2012
Adding a certificate authority to the Java runtime
Git For TFVC Users
- Download latest release of git tf
- Extract the contents of git-tf-2.0.3.20131219.zip to a folder on your local machine, i.e.
/Users/[ME]/git-tf/
on mac.
- Add the path where you extracted Git-TF (i.e.
/Users/[ME]/git-tf/
) to your PATH environment variable.
open ~/.profile
1 2 3 4 5
| export PATH="/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/":$PATH export PATH="/Users/[ME]/git-tf/":$PATH export JAVA_HOME="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home" $ source .profile
|
- add user name and password
1 2
| git config --global git-tf.server.username username git config --global git-tf.server.password ***********
|
- install ca.cer
required java version “1.6.0_65” (must)
download Java for OS X 2014-001
1 2 3 4 5
| sudo keytool -import -trustcacerts -file zztxca.cer -alias CompanyCA -keystore /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/cacerts #the default password for the cacerts keystore is `changeit` #When asked Trust this certificate? by keytool, answer yes
|
- clone project
1
| git tf clone https://server.com/tfs $/projectName
|
- pull
1 2 3 4 5
| git tf pull ``` 8. checkin
|
git tf configure http://myserver:8080/tfs/mycollection $/TeamProjectA/Main
git tf pull
git commit -a -m “merge commit”
git tf checkin
git push
1 2
| 9. recommended git settings
|
git config [–global] core.autocrlf false
git config [–global] core.ignorecase true
```