Git Gotchas

jlee-r7 edited this page Jun 20, 2012 · 1 revision

Metasploit Wiki Pages

Clone this wiki locally

If you've created a topic branch on your personal fork as described in Metasploit Development Environment, rebasing from upstream/master is a little tricky. This link explains what can go wrong:

Basically, rebasing will put you into a state where you have a local commit with a different sha1 from your remote commit of the same patch. So don't do that. Instead, use git merge upstream/master if you need to pull in new commits from rapid7's fork. But! As @tpope explains, it may not be worth the clogged up history, so don't do that either.