Search

Categories

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Send mail to the author(s) E-mail

# Tuesday, 10 June 2014
( Git | TFS )

Create Team Project in VS.com

Connect to it, in VS

Clone the repo

New solution (in team explorer)

Ahh - then gitignore doesn't work for packages

| | # 
# Monday, 09 June 2014
( Git | TFS )

http://stackoverflow.com/questions/15128541/how-can-i-push-my-existing-git-repository-to-team-foundation-service

Watch out for branches on the remote which you may not have brought down to your local

if using MINGGW32 terminal watch out for slashes:

git pull e:/dev/oldRepo

If I wanted all the branches then: http://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches

| | # 
# Friday, 06 June 2014
( Git | TFS )

http://pluralsight.com/training/Courses/TableOfContents/team-foundation-server-2013-new-features

Git Design Goals:

  • Speed
  • Simplicity
  • Strong branch/merge
  • Distributed
  • Scales well

Git with TFS

image
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

image

But then dll's in projects folder.  So switched to this .gitignore file: https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

image
http://stackoverflow.com/questions/18618760/tfs-git-extensions-seems-to-ignore-gitignore  - yes, this is a bug

http://stackoverflow.com/questions/20010319/visual-studio-online-git-how-to-make-sure-packages-are-ignored

image
Right click and just exclude the Packages folder.

image
Committed using SourceTree so don't put in packages folder.

Interestingly VS doesn't use the staging part of Git (mostly).

Work Items

image
Click New Work Item in blue on RHS.

Did some changes on HomeController.cs

image
Can do a simple compare between 2 versions.

Add a Work Item to a Checkin

image
image
Drag the work item over to RHS.

image
Can see the work item related to the commit.

Commit and Sync - means do a pull/push

Branching and Merging

TFS Projects

image
Project level dashboard

 

image

A TFS Team Project can contain multiple git repositories :-) But this seems like a bad idea..maybe good with a scratch demo directory.

image
TFS Team Project is DavesJokes3 (top of screen in blue) and repository is DavesJokes3

image
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.

| | # 
# Monday, 04 March 2013
( TFS )

Shelve current changes if need to

History, right click.  Go to previous version.

| | # 
# Monday, 11 February 2013
( TFS )

Start Menu --> All programs -->Microsoft Visual Studio 2010 --> Team Foundation Server tools -->Build Notifications.

Can see checkins, and when the build breaks!

| | # 
# Tuesday, 13 November 2012
( TFS )

http://visualstudiogallery.msdn.microsoft.com/b1ef7eb2-e084-4cb8-9bc7-06c3bad9148f – for VS2012

Windows explorer add files to source control.

| | #