From: Johan Herland Date: Sat, 03 Jul 2010 20:39:44 GMT Subject: Re: how do I exclude a commit from set of commits to be pushed. Message-ID: <201007032239.44639.johan@herland.net> In-Reply-To: On Saturday 03 July 2010, Mahesh Vaidya wrote: > Thank for the pointer; Do you think following scriptlet is good for > modifying specific commit ? and do edit. > > cat ./modify_specific.sh > git rebase -i $1 && git commit --amend && git rebase --continue You would need to do "$1^" instead of $1, since 'rebase' works on all commits _since_ the given commit (i.e. not including the given commit). You will also have to change the first line of the rebase "script" that is opened in your editor (from "pick to "edit "). ...Johan -- Johan Herland, www.herland.net