Pages

Tuesday, September 20, 2011

Git-TFS commands

Quick Clone

set branch=$/path/branch
set tfsserver=http://tfsserver:8080/tfs
set command=quick-clone
git tfs %command% %tfsserver% %branch%

Update from TFS

git tfs fetch
git rebase tfs/default

Creating an alias in .gitconfig:

[alias]
tpull = !git tfs fetch && git rebase tfs/default

Checkin to TFS visually

Useful if the checkins need to be linked to work items or other policy rules.

git tfs checkintool

Other Settings

Set ignore settings in ".git/info/exclude" instead of creating .gitignore file

Reference: article

No comments: