Monday, July 24, 2017

working with GIT TFS and corporate Security Certs

you have to work with TFS GIT repositories and your company has their own ssl certificates

I found the following article:

https://blogs.msdn.microsoft.com/phkelley/2014/01/20/adding-a-corporate-or-self-signed-certificate-authority-to-git-exes-store/



However, the new git version creates different certificates files instead of CURL-..

normally visual studio and their integration with GIT does not install GIT

therefore you need to:
1.-  install the windows client of GIT
Go to GIT: https://git-scm.com/download/win

2.- copy the certificate to from C:\Program Files\Git\usr\ssl\certs


https://curl.haxx.se/docs/sslcerts.html






Thursday, July 13, 2017

Deleting folders permanently from TFS .......

So you are an Admin and the team request you to delete folders from your tfs teamproject repository.

- Requisites :
  - You need to be team project administrator

tf vc destroy [/keephistory] itemspec1 [;versionspec]
              [itemspec2...itemspecN] [/stopat:versionspec] [/preview]
              [/startcleanup] [/noprompt] [/silent]
              [/login:username,[password]]
              [/collection:TeamProjectCollectionUrl]

tf vc destroy $/ProjectRepo/main2017 /collection:https://TFSSERVERURL/tfs/SAMPLEcollection   /noprompt /silent

Tuesday, July 9, 2013

Search for text content in source control TFS 2010


Get all the source control in a work space available to all users.
use Agent Ransack to search the code and identify all the files that contains the search.

To get all the source
- Map a work space to the root of the source control repository. (preferably a location you will be able to share with all the users.


The Agent Ransack is a client tool that can be map to a share drive to do local searches. this will avoid every user to download all the full set of the source code just to do a search.





Tools for this article
- GIMP
- Team foundation server 2010
- Agent Ransack

How to Find a file in Source Code in TFS 2010

Today I'm going to illustrate how to find a particular file inside of the source code stored in Team Foundation Server.

Here is the scenario, My users request me to find all the files in the source code with the following string as part of the file name "Microsoft.VisualStudio.TestTools.UnitTesting”.

For a quick search you can use the Find in Source Control and I do not say that this will satisfy all needs but 98% it will give you the answer you are looking for .

First identify the scope of your search, in other words are you searching for the file in a single team project (TP) or in all the source code repository.

In this case I'm looking in the entire source control repository.

I opened the source control repository in the TP (C...) that I was working on, then I select folder DevBranches, 

note:I've change the name of the TP for privacy reasons.

- I opened the source control explorer and right click on the DevBranches folder.


- I selected find in source control and then select wildcard



After that you will see the following screen 

By default the path will be like $/C/DevBranches, In this case I'm extending  my search to the entire repository. so I edited the path to $/.

I put the wildcard with the text that I'm searching for and add a * at the end as the wild card.
and will give me the results form the repository,

here is the screen that reflects empty results.

Now to show how the screen looks with some results I change the text search to Microsoft.web.ui.*

In this illustration it is only showing folders, but the results include folders, file names.

remember the first node in folder is the Team Project they belong to.





Credits :
The tools used in this project GIMP portable, excellent image editor.GIMP download