Git Design Goals:
- Strong branch/merge
- Scales well
Git with TFS
Signed up to tfsonline in www.visualstudio.com..
A Project can contain multiple solutions (repositories)
Made a new repo up there.
Open VS, connect to TFS Online, then clone this blank repo to e:\dev\test\DavesJokes
But then dll's in projects folder. So switched to this .gitignore file: https://github.com/github/gitignore/blob/master/VisualStudio.gitignore http://stackoverflow.com/questions/18618760/tfs-git-extensions-seems-to-ignore-gitignore
- yes, this is a bug
Right click and just exclude the Packages folder.
Committed using SourceTree so don't put in packages folder.
Interestingly VS doesn't use the staging part of Git (mostly).
Click New Work Item in blue on RHS.
Did some changes on HomeController.cs
Can do a simple compare between 2 versions.
Add a Work Item to a Checkin
Drag the work item over to RHS.
Can see the work item related to the commit.
Commit and Sync - means do a pull/push
Branching and Merging
Project level dashboard
A TFS Team Project can contain multiple git repositories But this seems like a bad idea..maybe good with a scratch demo directory.
TFS Team Project is DavesJokes3 (top of screen in blue) and repository is DavesJokes3
Adding a new Git repository to this team project. However this will break work item tracking: http://stackoverflow.com/questions/17591461/can-you-add-multiple-git-repositories-to-a-team-project-in-tfs-tfs-service **actually it may be fixed now.