git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Pushing an --amend-ed commit
@ 2008-06-02  9:51 Robert Haines
  2008-06-02 14:55 ` Pushing an --amend-ed commit [and a git-merge-theirs strategy] Paolo Bonzini
  2008-06-03  0:08 ` Pushing an --amend-ed commit Matt Pearson
  0 siblings, 2 replies; 5+ messages in thread
From: Robert Haines @ 2008-06-02  9:51 UTC (permalink / raw)
  To: Git Mailing List

Hi list,

The other day I did the classic:

1) Right, changes all done and committed. Push to public repo.
2) Bugger, missed out an obvious one-liner in a Makefile. Make change  
and --amend that last commit.
3) Push to public repo again... Ah, "Not a strict subset" error, can't  
push...

It's obvious (I think) to me why I get this error - the commit now has  
a different hash so it looks like it would be the wrong thing to do to  
allow the push as far as git is concerned. Right?

So, is it safe to "use the --force" in this instance when pushing?  
This should just replace the old commit with the --amended commit with  
no side-effects, shouldn't it?

Thanks,
Rob

-- 
Robert Haines

Research Associate, RealityGrid          Tel. : +44 (0)161 275 6067
Research Computing Services              Fax. : +44 (0)161 275 0637
University of Manchester                 Email: rhaines@manchester.ac.uk
Oxford Road                              Web  : www.realitygrid.org
Manchester, M13 9PL, UK                       : www.rcs.manchester.ac.uk

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-06-03 17:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-02  9:51 Pushing an --amend-ed commit Robert Haines
2008-06-02 14:55 ` Pushing an --amend-ed commit [and a git-merge-theirs strategy] Paolo Bonzini
2008-06-03 17:49   ` Robert Haines
2008-06-03  0:08 ` Pushing an --amend-ed commit Matt Pearson
2008-06-03  0:22   ` Matt Pearson

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).