Solved

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

Posted on 2014-10-26
5
368 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 81

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In addition to being a great web-based presentation tool, Prezi also makes it easy to save your presentation as a PDF to share with others as well. Learn how in this tutorial. Select the share icon from the top menu in your Prezi editor: Select "D…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

724 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