Git development
 help / color / mirror / Atom feed
* How to force a push to succeed?
@ 2017-08-22 21:55 Jeffrey Walton
  2017-08-22 21:57 ` Stefan Beller
  2017-08-23  8:03 ` Kevin Daudt
  0 siblings, 2 replies; 8+ messages in thread
From: Jeffrey Walton @ 2017-08-22 21:55 UTC (permalink / raw)
  To: Git List

I tested some changes that lead to a dead end. The changes need to be
removed. The changes were added in 7 commits.

I went back in time to the point before the changes:

    $ git reset --hard HEAD~7
    HEAD is now at 559fc3b Fix benchmark selection code (GH #464)

When I attempted to push:

    $ git push
    Username for 'https://github.com': noloader
    To https://github.com/noloader/cryptopp.git
     ! [rejected]        master -> master (non-fast-forward)

I tried to commit, but Git claims there's nothing to add:

    $ git commit
    On branch master
    Your branch is behind 'origin/master' by 7 commits, and can be
fast-forwarded.

Commit seems to be the wrong command as Git appears to be trying to do
something I don't want.

How do I force the push to succeed?

Thanks in advance.

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

end of thread, other threads:[~2017-08-23 17:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-22 21:55 How to force a push to succeed? Jeffrey Walton
2017-08-22 21:57 ` Stefan Beller
2017-08-22 22:03   ` Jeffrey Walton
2017-08-22 22:10     ` Jeffrey Walton
2017-08-22 22:26       ` Jeffrey Walton
2017-08-23 17:06         ` Johannes Sixt
2017-08-23 16:56       ` Jonathan Nieder
2017-08-23  8:03 ` Kevin Daudt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox