git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Definition of working directory

From
jaseem abid <jaseemabid@gmail.com>
Date
Mar 28, 2012, 09:40 UTC
Message-ID
<CAH-tXsCG5c-z_P-Uw7h72847e0ThfFREFVKkqcG77LuF4fQoTA@mail.gmail.com>
In-Reply-To
<BLU0-SMTP4376CA011AD4D79C1BAB727B14A0@phx.gbl>
On Wed, Mar 28, 2012 at 2:56 AM, Anjib Mulepati <anjibcs@hotmail.com> wrote:
>
> So if I have a project called MyProject and inside that I have two
> sub-directories dir1 and dir2. Does that mean working directory is *ALWAYS*
> MyProject.
Yes. It is MyProject.
Show 5 quoted lines
> Also if i create some file in dir1 and do git status without git add then
> it display untracked files as ../dir1/
> It doesn't display the untracked file name but after I do git add when I
> did git status it does give me file under changes to be committed. Why
> didn't it shows file with name as untracked in first case?

Often there will be build folders with too many unwanted files to ignore. Unless at least a single file in a directory is tracked, git will ignore the folder. This is afaik a good feature and not a problem.

PS: I am not really a git expert. Please correct me if I'm wrong.

-- Jaseem Abid +91 8891 72 43 72 S6 CSE student National Institute of Technology , Calicut.

Previous: KevinNext: Anjib Mulepati
Message 6 of 11 in “Definition of working directory”
  1. Anjib MulepatiMar 27, 2012
  2. Junio C HamanoMar 27, 2012
  3. Anjib MulepatiMar 27, 2012
  4. Junio C HamanoMar 27, 2012
  5. KevinMar 28, 2012
  6. jaseem abidMar 28, 2012
  7. Working directory managmentAnjib Mulepati, Mar 28, 2012
  8. Junio C HamanoMar 28, 2012
  9. Anjib MulepatiMar 28, 2012
  10. jaseem abidMar 28, 2012
  11. Junio C HamanoMar 28, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.