You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh shit! I ran git pull in the wrong branch and now my PR has a merge commit, and it disappears on rebase, but also I ammended the merge commit with more changes and those disappear as well!
Presumably with the proposed solution of (unless someone has a better way):
# remove all the commits from your branch, without removing the changes
git reset master
# manually pick the changes that do belong in your PR (any commits added to master since the last branch rebase will appear undone after the reset)
git add -Ap
# recreate the commit(s) without any merges; push
git commit ...; git push -f ...
# clean up the rest of the changes
git reset --hard
Proceed to $ingest heavily.
( Possibly prefixed by git reflog; git reset --hard $MERGE_COMMIT when trying to fix this after finishing a rebase. )
The text was updated successfully, but these errors were encountered:
Proposing an addition along the lines of...
Presumably with the proposed solution of (unless someone has a better way):
( Possibly prefixed by
git reflog; git reset --hard $MERGE_COMMIT
when trying to fix this after finishing a rebase. )The text was updated successfully, but these errors were encountered: