git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Gonzalo Garramuño" <ggarra@advancedsl.com.ar>
To: git@vger.kernel.org
Subject: Silly revert question workflow...
Date: Thu, 06 Mar 2008 03:29:34 -0300	[thread overview]
Message-ID: <47CF8F4E.5010809@advancedsl.com.ar> (raw)


I'm wondering if there's any easy way to basically "fix" the last commit 
from the history.  To explain a little bit...

Being the silly guy I am, one of the very common things I do is that I 
may be working on two features simultaneously.
Then one feature is done, I will do a check-in and then seconds later 
I'll realize that I forgot to add, say, another .h file that was also 
modified and that I thought was not needed for that commit.
Sure enough, without that .h file the tree as checked in is really in an 
uncompilable state.

git revert allows me to revert the commit and do it again.  But it still 
leaves a commit in the history tree that is uncompilable.

This also happens to me when I am in a different branch doing fixes and 
I need to quickly go to another branch to do changes there (ie. in the 
same dir, without cloning), so I end up doing a commit in the fix branch 
of my temporary stuff and then do a co of the stable branch.
I would like to then later go back to the fixing branch and remove that 
temporary commit (or ammend it changing all its history).


-- 
Gonzalo Garramuño
ggarra@advancedsl.com.ar

AMD4400 - ASUS48N-E
GeForce7300GT
Xubuntu Gutsy

             reply	other threads:[~2008-03-06  6:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06  6:29 Gonzalo Garramuño [this message]
2008-03-06  6:37 ` Silly revert question workflow Mike Hommey

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=47CF8F4E.5010809@advancedsl.com.ar \
    --to=ggarra@advancedsl.com.ar \
    --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).