git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiang Xin <worldhello.net@gmail.com>
To: govinda <govinda.webdnatalk@gmail.com>, Git List <git@vger.kernel.org>
Subject: Re: newbie - missing file from untracked list
Date: Tue, 19 Jul 2011 10:56:53 +0800	[thread overview]
Message-ID: <4E24F275.3030906@gmail.com> (raw)
In-Reply-To: <1311040156386-6597192.post@n2.nabble.com>

于 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

  reply	other threads:[~2011-07-19  3:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-19  1:49 newbie - missing file from untracked list govinda
2011-07-19  2:56 ` Jiang Xin [this message]
2011-07-19 17:07   ` govinda
2011-07-19 18:51     ` Christof Krüger
2011-07-20 13:43       ` govinda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E24F275.3030906@gmail.com \
    --to=worldhello.net@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=govinda.webdnatalk@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).