
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlug] git and sub-directories
- Date: Sun, 13 Mar 2011 20:37:22 +0900
- From: Darren Cook <darren@example.com>
- Subject: [tlug] git and sub-directories
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8
A quick tech question to take your mind off of the aftershocks :-)
$ git status
...
# modified: settings/tickfeeder.csv
...
$ cd settings
$ git status
...
I.e. no changed files. I got suspicious because I remember writing the
commit notice for the file it is says is modified.
I notice I have a .git subdirectory in both the top directory and the
settings subdirectory. I guess I did "git init" in the settings
directory first, then added the parent directory later.
So how do I (a git beginner) fix this mess? Just deleting settings/.git/
is bad as then I'd lose some commit history?
Yoroshiku,
Darren
--
Darren Cook, Software Researcher/Developer
http://dcook.org/work/ (About me and my work)
http://dcook.org/blogs.html (My blogs and articles)
Home |
Main Index |
Thread Index