* newbie - missing file from untracked list
@ 2011-07-19 1:49 govinda
2011-07-19 2:56 ` Jiang Xin
0 siblings, 1 reply; 5+ messages in thread
From: govinda @ 2011-07-19 1:49 UTC (permalink / raw)
To: git
Hi everyone.
I just started with git.. am new to VCS/SCM (been doing it
painstakingly/manually for years), am new to the CL, am a decent old-school
coder, but on occasion a little slow in unix topics, and other more
modern/current coding circles.
I am embarrassed to ask, because I am guessing it is going to be
obvious/silly, once I see it.. but meanwhile:
Isn't the list of untracked files that git shows me when I do, e.g.:
Govind% git status
..supposed to include all actual files in the directory? A couple times,
like now.. I am wanting to add a file to the staging area.. and for some odd
(odd to me now) reason, the file is as if not there. When I do:
Govind% ls
..then I see the file *is* there.. as I also know it is from my Mac OS 10.6
finder window.
So why does git not mention it when I do 'status'?
Git seems happy for me to 'add' the file, but then refuses to show it to me
in the 'status' listing.
The file in question is in the pwd, and is named 'mainline_finishes.html'.
Here, please see my issue:
[Govindas-iMac-2:SS_site_root] Govind% pwd
/Users/Govind/Documents/webmastering/websites-devel./SS_site_root
[Govindas-iMac-2:SS_site_root] Govind% ls
[snip]
VL_ShowMan.html-2011-05-10_late mainline_finishes.html
VL_ShowMan.html-2011-05-11 mainline_finishes.html-2011-04-29
VL_ShowMan.html-2011-05-12 mainline_finishes.html-2011-06-08
VL_ShowMan.html-2011-05-17 mainline_finishes.html-2011-06-17
VL_ShowMan.html-2011-05-19 manu_autoupdate00.html
VL_ShowMan.html-2011-06-02 news
[snip]
[Govindas-iMac-2:SS_site_root] Govind% git add mainline_finishes.html
[Govindas-iMac-2:SS_site_root] Govind% git status
# On branch Gov_SS_2011-07-16
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: VL_ShowMan.html
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
[snip]
# Intranet_IE/CSI_Admin.html
# Intranet_IE/DealerUpdate_Approve.html
[snip]
# LunchReport_CommentToolTip.js
# ManuUpdate/
# RepGroup_Update_Trigger.html
[snip]
# joinus.html
# mainline_finishes.html-2011-04-29
# mainline_finishes.html-2011-06-08
# mainline_finishes.html-2011-06-17
# manu_autoupdate00.html
# myspecsimple/
# news/
[snip]
^^^ *where* is 'mainline_finishes.html'?!
I would sort that untracked file listing for ease of reading.. but I do not
know how (if it is even possible)... is there an option for 'git status -?'
that causes the list to sort alphabetically? At the moment is seems to try
to sort ..but breaks the lists into a couple/few separate clumps of
otherwise alphabetized file names. (That makes no sense to me.)
Thanks for any feedback.
Also please feel free to scold me or train me on any point where I need it..
like list protocol, language used, CL tips, etc. anything. I mean to play
nice.. and am only appreciative.
-Govinda
--
View this message in context: http://git.661346.n2.nabble.com/newbie-missing-file-from-untracked-list-tp6597192p6597192.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: newbie - missing file from untracked list
2011-07-19 1:49 newbie - missing file from untracked list govinda
@ 2011-07-19 2:56 ` Jiang Xin
2011-07-19 17:07 ` govinda
0 siblings, 1 reply; 5+ messages in thread
From: Jiang Xin @ 2011-07-19 2:56 UTC (permalink / raw)
To: govinda, Git List
于 11-7-19 上午9:49, govinda 写道:
> [Govindas-iMac-2:SS_site_root] Govind% git add mainline_finishes.html
> [Govindas-iMac-2:SS_site_root] Govind% git status
> # On branch Gov_SS_2011-07-16
> # Changes to be committed:
> # (use "git reset HEAD <file>..." to unstage)
> #
> # new file: VL_ShowMan.html
> #
> # Untracked files:
> # (use "git add <file>..." to include in what will be committed)
> #
> [snip]
> # Intranet_IE/CSI_Admin.html
> # Intranet_IE/DealerUpdate_Approve.html
> [snip]
>
> ^^^ *where* is 'mainline_finishes.html'?!
>
If the file 'mainline_finishes.html' is already in the repository,
add it again without any modifications, the file will not show in
git-status output.
You can see files aready in HEAD:
$ git ls-tree HEAD
or files in stage.
$ git ls-files -s
> I would sort that untracked file listing for ease of reading.. but I do not
> know how (if it is even possible)... is there an option for 'git status -?'
> that causes the list to sort alphabetically? At the moment is seems to try
> to sort ..but breaks the lists into a couple/few separate clumps of
> otherwise alphabetized file names. (That makes no sense to me.)
$ git status -s | grep "^?" | sort
--
Jiang Xin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: newbie - missing file from untracked list
2011-07-19 2:56 ` Jiang Xin
@ 2011-07-19 17:07 ` govinda
2011-07-19 18:51 ` Christof Krüger
0 siblings, 1 reply; 5+ messages in thread
From: govinda @ 2011-07-19 17:07 UTC (permalink / raw)
To: git
> You can see files aready in HEAD:
>
> $ git ls-tree HEAD
>
> or files in stage.
>
> $ git ls-files -s
Thanks for these ^^^ Jiang Xin!
It is not easy for me to understand all the various contexts which show
files (and those contexts' names, and the commands to see into them) in git,
yet.. but now thanks to you I know better where to look (and reread) in
various docs.
>> I would sort that untracked file listing for ease of reading.. but I do
>> not
>> know how (if it is even possible)... is there an option for 'git status
>> -?'
>> that causes the list to sort alphabetically? At the moment is seems to
>> try
>> to sort ..but breaks the lists into a couple/few separate clumps of
>> otherwise alphabetized file names. (That makes no sense to me.)
> $ git status -s | grep "^?" | sort
Apparently, I do not know how to use this that you gave me ^^^ .
So far, nothing I tried for generating a 'git status' listing would make the
(more-than-one, and separate) alphabetical clumps of file names sort into
just ONE homogenous alphabetical list.
for example:
[Govindas-iMac-2:SS_site_root] Govind% git status -s sort
[Govindas-iMac-2:SS_site_root] Govind% git status -s
A VL_ShowMan.html
?? CSS/
?? Empire_06_10_Calls.html
?? GovTest-VL_ShowMan_e-card.html
?? Intranet_IE/CSI_Admin.html
?? Intranet_IE/DealerUpdate_Approve.html
[snip]
?? Intranet_IE/repupdate_edit_linestep3_action_update.inc
?? LunchReport-Trigger_email2attendees2review.html
[snip]
?? LunchReport_CommentToolTip.js
?? ManuUpdate/
?? RepGroup_Update_Trigger.html
?? SAS_DesignFirm_Dealer_Referral.html
[snip]
?? WelcometoNewVL.html
?? _SS_Govinda_only.php
?? _archived copies/
?? aboutVL/
?? booklist.html-mydraft
?? buyinggroup.html
?? buyinggroup.html-2011-02-16
?? categories/
[snip]
?? joinus.html
?? mainline_finishes.html-2011-04-29
?? mainline_finishes.html-2011-06-08
?? mainline_finishes.html-2011-06-17
[snip]
?? upload_CORRECT.html
[snip]
see, why is there what seems to be 2 consecutive alphabetical lists of file
names?
The first one spans the files:
?? CSS/
.
.
.
?? WelcometoNewVL.html
...while the second list spans the files:
?? _SS_Govinda_only.php
.
.
.
?? upload_CORRECT.html
My knowledge CL is limited, so I apologize in case you have already answered
me and I just do not yet see it.
Can you show me an example for a git status *sorted* command I could copy
and paste into CL directly.. that would thus show me how to apply what you
told me... so I can sort the file names into ONE homogenous alphabetical
list?
Thanks for your time
-Govinda
--
View this message in context: http://git.661346.n2.nabble.com/newbie-missing-file-from-untracked-list-tp6597192p6599506.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: newbie - missing file from untracked list
2011-07-19 17:07 ` govinda
@ 2011-07-19 18:51 ` Christof Krüger
2011-07-20 13:43 ` govinda
0 siblings, 1 reply; 5+ messages in thread
From: Christof Krüger @ 2011-07-19 18:51 UTC (permalink / raw)
To: govinda; +Cc: git
On Di, 2011-07-19 at 10:07 -0700, govinda wrote:
> see, why is there what seems to be 2 consecutive alphabetical lists of file
> names?
> The first one spans the files:
> ?? CSS/
> .
> .
> .
> ?? WelcometoNewVL.html
>
>
> ...while the second list spans the files:
> ?? _SS_Govinda_only.php
> .
> .
> .
> ?? upload_CORRECT.html
Well, this is actually just one sorted list. However, sorting is
case-sensitive. When you look at the order of characters in the ASCII
table, capital letters come before the characters [ \ ] ^ _ `. Then the
small letters follow.
Bye,
Chris
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-07-20 13:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19 1:49 newbie - missing file from untracked list govinda
2011-07-19 2:56 ` Jiang Xin
2011-07-19 17:07 ` govinda
2011-07-19 18:51 ` Christof Krüger
2011-07-20 13:43 ` govinda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).