Question

I'm a total noob so thanks in advance for helping me. I've been trying to delete a push to GitHub and have been having some difficulties. I had one account set up on my Mac, no longer want to use it, and just when I thought I had it all set up with a different account, I did a test push and it pushed to the old account. I followed several different threads but seem to have encountered a problem with the menu to select a push to delete. The menu that I'm stuck at now looks like this:

pick (good push info)
pick (push I want deleted info)

Rebase (stuff)
Commands:
p, pic = use commit

r, reword = use commit, but edit the commit message

e, edit= use commit, but stop for amending
s, squash = use commit, but meld into previous commit
f, fixup = like "squash", but discard this commit's log message
x, exc = run command (the rest of the line) using shell

These lines can be re-ordered; they are executed from top to bottom
If you remove a line here THAT COMMIT WILL BE LOST.
However, if you remove everything, the rebase will be aborted.
Note that empty commits are commented out
-- INSERT--

At this menu, I can't get it to do anything. I don't know how to select what I need to in order to remove the push. I've tried hitting enter at different lines, and I'm stuck. Any help would be appreciated!!

Était-ce utile?

La solution

Hit 2gg then dd and then :wq<Enter>.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top