git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arup Rakshit <aruprakshit@rocketmail.com>
To: git@vger.kernel.org
Subject: Any difference to unstage files using "git checkout" and "git rm"
Date: Mon, 19 May 2014 21:12:47 +0630	[thread overview]
Message-ID: <6833494.47nikG189t@linux-wzza.site> (raw)

Hi,

Is there any difference between the below 2 commands ? I didn't see anything.

git rm --cached  -- <file1> .. <fileN>
git checkout  -- <file1> .. <fileN>


-- 
===============
Regards,
Arup Rakshit

             reply	other threads:[~2014-05-19 15:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19 14:42 Arup Rakshit [this message]
2014-05-19 14:57 ` Any difference to unstage files using "git checkout" and "git rm" Arup Rakshit
2014-05-19 16:45   ` Jeff King
2014-05-19 16:01 ` Jeff King
2014-05-19 16:11   ` Arup Rakshit

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=6833494.47nikG189t@linux-wzza.site \
    --to=aruprakshit@rocketmail.com \
    --cc=git@vger.kernel.org \
    /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).