LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 12-04-2009, 08:16 PM   #1
gctaylor1
LQ Newbie
 
Registered: Dec 2006
Posts: 23

Rep: Reputation: 0
Can git checkout a single file in a unique directory?


Will git allow me to checkout a file(or files) to specific directories that is/are different from the main repository and still have the "different" files be under version control?

Here's my example(using svn now): I have a main repository where I have the bulk of the files checked out. Some files within my repository have to be in specific directories in order to run.

Right now with svn I have to keep copying files back and forth in order to either run the file or have the files be under version control. It's getting old and causing me to not use version control properly. According to this link http://subversion.tigris.org/faq.htm...-file-checkout svn cannot do this.

I was thinking I'd switch to git if it can do this but I can't seem to find this answer for git.

Thanks.
 
Old 12-04-2009, 10:35 PM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
Git works on a directory level. Or higher.

You can work with individual files, but let's face it: you've got hundreds of "individual files," and trying to keep them all marching in step individually is a PITA if you have to worry about them individually.

Git is very definitely designed for use by developers who are, for example, exchanging their updates by e-mail. People who are working on all parts of the planet: when they're sleeping in their particular time zone of choice, someone else is always awake.

You'll either love it or you won't. It's either the cat's meow for you, exactly what you want, or not what you want at all. IMHO, it is so very targeted for one particular usage scenario that there really there is no in-between.
 
1 members found this post helpful.
Old 12-05-2009, 09:19 AM   #3
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,543

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
Originally Posted by gctaylor1
Here's my example(using svn now): I have a main repository where I have the bulk of the files checked out. Some files within my repository have to be in specific directories in order to run.

Right now with svn I have to keep copying files back and forth in order to either run the file or have the files be under version control.
Why don't you put a symlink in the directory for running to the directory where it sits now. I believe both SVN and git support symlinks.
 
1 members found this post helpful.
  


Reply

Tags
control, git, svn, version


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cvs checkout problem failed to create lock directory ShaqDiesel Linux - Software 1 10-17-2009 04:42 AM
unique problem in resetting root password in suse linux in single user mode & rescue amit_kalipur Linux - Security 1 07-14-2009 02:41 PM
Git permissions in object directory frndrfoe Linux - Software 0 05-12-2008 05:27 PM
Copying a single file into each directory of a directory tree mlapl1 Linux - Newbie 2 06-27-2007 11:18 PM
removepkg: WARNING: Unique directory contains new files merchtemeagle Slackware 10 06-23-2005 09:51 AM


All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration