Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use my own git repository for tracking some third-party source tree and put a couple of mine commits on top of it. Usually, when I want to try a newer version, I only need to call git rebase upstream/master. But sometimes the upstream drops some commits and my rebase fails. It's no serious problem, as I can always reset to the upstream and cherry-pick my changes. Or I can remove the dropped commits using interactive rebase.

However, it's not optimal and I'd like to automate it somehow. A command like "remember all my commits in master, reset master to upstream/master and re-apply the remembered commits" would be nice. I could build something like this using cherry-pick, but it aborts on the first problem and then I'd left with some commits applied and others lost.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.