LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-09-2013, 01:57 PM   #1
Enoch247
LQ Newbie
 
Registered: May 2012
Posts: 6

Rep: Reputation: Disabled
grouping source controled and non controled files by project


when working on coding projects, lately, I have been following the convention of checking code into a folder with an extra "wrapper" folder. example:

"git clone git://git.foo.com/projectname.git projectname/projectname"

I do this becuase then I have a folder one level up to place things I don't want under revision control (like downloaded doumentation for libs i may be using, etc). I got the idea from how every repo in gitorious is in a project folder. I like it and I don't. Alot of times I don't start out needing this extra layer (sometimes I never need it) so it may sit empty(minus the second folder of course). Anyway I was just wondering what other people do. Is there a common convention?

Another idea I have had is to just put the folder "gitignore" in my global gitignore file that way I can create it if needed and drop things in there.

Last edited by Enoch247; 08-09-2013 at 02:02 PM. Reason: added second idea
 
Old 08-09-2013, 03:38 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
I also create repositories into subdirectory, to store additional data out of it. If you don't like "empty" directories you can first clone project into main directory, and later if you see that you need additional files, you can move repository to subfolder.
 
Old 08-09-2013, 03:48 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
I have my own directory conventions, for different purposes, but for determining what is and is not included in a commit on my own systems I use the .git/info/exclude config. That places no pre-defined constraints on a project and gives me control as needed with any required granularity.
 
  


Reply



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
[SOLVED] Multiple source files and headers in a Code::Blocks project. How? searching_for_answers Programming 2 09-11-2011 12:53 PM
Version Controled Backups pkraus109 Linux - Server 2 10-23-2010 01:27 PM
Time-controled execution krojther Linux - Newbie 2 01-14-2010 04:54 PM
grouping files in a single file scofiled83 Programming 7 06-12-2009 04:48 AM
Fore Marconi ESX-4800 Backbone Switch Controled Via Linux [PX]Kal Bob Linux - Networking 0 04-17-2004 06:52 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:49 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
Open Source Consulting | Domain Registration