From: "Tim Visher" <tim.visher@gmail.com>
To: git@vger.kernel.org
Subject: Is it possible to roll back unstaged changes while leaving the staged ones for the next commit?
Date: Wed, 17 Dec 2008 14:57:08 -0500 [thread overview]
Message-ID: <c115fd3c0812171157m3d180534gb5630fbcf39b2bbd@mail.gmail.com> (raw)
Hello Everyone,
I'm attempting to use `git add -i` to help me resolve the differences
between two files in a way that makes sense (leaving class names, some
logic, but changing other things like white space, etc.). I have all
of the changes that I want to be committed staged now in the index.
My question is this: is it possible to revert the changes that I
haven't staged so that the file looks as if everything inside of it
has been staged because none of the stuff I didn't stage is there
anymore.
Thanks in advance!
--
In Christ,
Timmy V.
http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
next reply other threads:[~2008-12-17 19:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-17 19:57 Tim Visher [this message]
2008-12-17 20:30 ` Is it possible to roll back unstaged changes while leaving the staged ones for the next commit? Junio C Hamano
2008-12-17 22:48 ` Tim Visher
2008-12-17 22:59 ` Junio C Hamano
2008-12-18 1:22 ` Tim Visher
2008-12-18 3:34 ` Nanako Shiraishi
2008-12-18 12:24 ` Tim Visher
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=c115fd3c0812171157m3d180534gb5630fbcf39b2bbd@mail.gmail.com \
--to=tim.visher@gmail.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).