From: Howard Miller Date: Fri, 11 Mar 2011 15:53:19 GMT Subject: Re: Correcting forgetting to make a new branch Message-ID: In-Reply-To: > "Alexey Feldgendler" writes: > >> However, the branch that was active before when you should have >> branched will have been unintentionally updated. To fix that, you'll >> need to move the old branch a few commits back: >> >> git branch -f > > This is correct, but for completeness: don't do that if you've already > pushed your changes. If you pushed them and people already pulled them, > you can hardly do better than appologize to your co-workers that you > shouldn't have done that, and possibly create a new commit on top of the > branch reverting what you did. I hadn't (luckily), so that worked fine. Thanks for your help - both of you :)