locked
TFS and Git repositories RRS feed

  • Question

  • Totally new to TFS (and all other VCS).

    Please someone, point to good stuff for dummies explaining the terms of and relations between (or recommended relations between) between:

    • "Project Collection"
    • "Team Project"
    • "Local Git Repositories" (what is then "Remote Git Repositories apart from GitHub ?)
    • "Solutions"

    The first 2 is fairly obvious and of course the last one.

    In addition to some term/relationship explanation it would be nice to know the answer on the following questions:
    Is there or should there be a one-to-one relation between a Team Project and a Local Git Repository ?
    Is there or should there be a one-to-one relation between a Local Git Repository and a (VS) Solution ?
    What does the vertical bar between the solution name and the (same) solution name indicate (see below).
    ClassLibrary3 below was added by using the New command, however using the Open command and then "Add Solution to Source Control" which just creates an offline Git repository and adds the solution to it, how to include this Git solution in a given Team Project (depending on answer on #2 and #3 question above.
    How to add local Git repositories to a Team Project in general (if recommended to do so) ?

    I find it a little confusing, but I am sure thats only due to my lack of basic knowledge.



    • Edited by EuroEager Monday, March 7, 2016 8:45 PM
    Monday, March 7, 2016 8:39 PM

Answers

  • Hi EuroDager,  

    Thanks for your post.

    We usually clone one team project to one Local Git Repository on one client/machine.  

    No, one Local Git Repository can has manually VS solutions.

    That means the ClassLibrary3.sln file existed in this ClassLibrary3 folder, and this ClassLibrary3 folder existed in the Git Repository. You can slide the mouse on it to view the detailed location.    

    Move that ClassLibrary3 solution into your team project’s Git Repository folder, then click ClassLibrary3.sln to open this solution in Solution Explorer and right-click on this solution to select Add Solution to Source Control. Check the example in this document: https://msdn.microsoft.com/en-us/library/hh850445.aspx.   

    For more information about TFS Git, please start from here: https://msdn.microsoft.com/en-us/library/vs/alm/code/git/overview?f=255&MSPPError=-2147217396.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, March 8, 2016 5:55 AM
    Moderator

All replies

  • Hi EuroDager,  

    Thanks for your post.

    We usually clone one team project to one Local Git Repository on one client/machine.  

    No, one Local Git Repository can has manually VS solutions.

    That means the ClassLibrary3.sln file existed in this ClassLibrary3 folder, and this ClassLibrary3 folder existed in the Git Repository. You can slide the mouse on it to view the detailed location.    

    Move that ClassLibrary3 solution into your team project’s Git Repository folder, then click ClassLibrary3.sln to open this solution in Solution Explorer and right-click on this solution to select Add Solution to Source Control. Check the example in this document: https://msdn.microsoft.com/en-us/library/hh850445.aspx.   

    For more information about TFS Git, please start from here: https://msdn.microsoft.com/en-us/library/vs/alm/code/git/overview?f=255&MSPPError=-2147217396.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, March 8, 2016 5:55 AM
    Moderator
  • Thanks a lot

    Another small q: The hubs in Team Explorer hava a vertical bar at left, these have different colors, do the colors indicate anything particular (dynamically) ?


    • Edited by EuroEager Friday, March 11, 2016 5:49 PM
    Friday, March 11, 2016 5:49 PM
  • Hi EuroEager,

    I'd suggest asking separate questions in new forum threads. Thus, forum readers may recognize questions and answers easily.

    Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, March 14, 2016 9:57 AM
    Moderator