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

Re: Is it possible to roll back unstaged changes while leaving the staged ones for the next commit?

From
Tim Visher <tim.visher@gmail.com>
Date
Dec 18, 2008, 12:24 UTC
Message-ID
<c115fd3c0812180424q3ac080a8iad53803fd3f2bb4d@mail.gmail.com>
In-Reply-To
<20081218123456.6117@nanako3.lavabit.com>
On Wed, Dec 17, 2008 at 10:34 PM, Nanako Shiraishi <nanako3@lavabit.com> wrote:
> A short answer is "no it is not the case."
Thanks.
> I was about to quote "git checkout" documentation to you because I was reasonably sure that Junio won't respond to people who ask a question whose answer is plainly described in the manual pages, but I think the description of the command is a little confusing especially for people who read it for the first time.
Agreed.
Show 6 quoted lines
>  When <paths> are given, this command does *not* switch
>  branches.  It updates the named paths in the working tree from
>  the index file, or from a named <tree-ish> (most often a commit).  In
>  this case, the `-b` options is meaningless and giving
>  either of them results in an error.  <tree-ish> argument can be
>  used to specify a specific tree-ish (i.e. commit, tag or tree)
Works a lot better.
Thanks for the help!
-- 
In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
Previous: Nanako Shiraishi
Message 7 of 7 in “Is it possible to roll back unstaged changes while leaving the staged ones for the next commit?”
  1. Tim VisherDec 17, 2008
  2. Junio C HamanoDec 17, 2008
  3. Tim VisherDec 17, 2008
  4. Junio C HamanoDec 17, 2008
  5. Tim VisherDec 18, 2008
  6. Nanako ShiraishiDec 18, 2008
  7. Tim VisherDec 18, 2008

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.