Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Definition of working directory

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:24

Anjib Mulepati [off-list ref] writes:
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.
Your working tree is MyProject that has two subdirectories dir1 and dir2.
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?
Because often such a directory has tons of garbage files that are totally
uninteresting.  Check "git help status" and look for the --untracked-files
option if you want to learn more.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help