Solved

Git with MS Team Foundation Server: how to checkout/checkin one file without pulling the entire repository

Posted on 2014-10-26
5
352 Views
Last Modified: 2014-10-27
Hi Experts,

Our team has a file repository using Git with Team Foundation Server.

Currently the way we are working with it is to use Microsoft Visual Studio or TortoiseGit. We check out the entire repository to local, do the editing, and then commit to the local repository, and finally push the local repository to remote server.

We have some team members are only working on a couple of the documents in the repository, such that pulling the entire repository to local seems too much overhead to them. Is there a way that they can check-out and check-in a single file without pulling the entire repository to their local computer?

If there is any tool, setting in the tool, or some way of writing script to do this, please give me some tip.

Thank you!
0
Comment
Question by:huangs3
  • 3
5 Comments
 
LVL 80

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 200 total points
ID: 40407102
GIT is GIT and TFS is TFS two different animals, like a chimpanzee and a gorilla. They may be located in the same area in Visual Studio GIT being the chimpanzee assumes that you have a local repository and will only commit changes, once you have the local repository when you check out you only get the changes you ask for.. i.e. which branch you are in.  Unlike TFS (the Gorilla) where you can check out individual files.. Once you have a local repository only changed files get transferred.. You also cannot automate builds in GIT where you can in TFS.
0
 

Author Comment

by:huangs3
ID: 40407192
Hi David,

Team Foundation Server does provide a Git option.
http://devproconnections.com/visual-studio-2013/git-team-foundation-server-2013 
I don't need to automate builds.
I think my goal can be simplified to: find out how to check-in and check-out a file from Git without pulling the entire repository to local. Is it possible?

Thank you!
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 300 total points
ID: 40407276
No it is not possible. Is that clear enough?
0
 

Author Comment

by:huangs3
ID: 40407307
That's clear. This question will be closed. Then I am going to try to find some work-around and there may be follow up questions.
0
 

Author Closing Comment

by:huangs3
ID: 40407312
Duncan give a clear answer such that I can start look at work-arounds. David gave some background knowledges.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to install SVN Command Line Client? 5 81
wireless name in LAN adapter 14 70
Moving files from folder to folder 8 42
internet fax? 7 19
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question