[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patchy email from PhilH
From: |
David Kastrup |
Subject: |
Re: Patchy email from PhilH |
Date: |
Fri, 28 Sep 2012 16:40:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
"Phil Holmes" <address@hidden> writes:
> I'm always a little nervous about simply deleting staging, although I
> know this is the correct approach. David - could you give me the
> commands needed to delete and recreate staging, please? (Private mail
> if you don't want everyone to try this out).
Everyone does not have push access. Those that have will hopefully know
better than to do crazy experiments.
First do something like
git fetch
git log -3 origin/staging
to be really, really sure what commit you want to have in staging rather
than the one that currently is there, and that you are sure that you
will only lose your own commit and nothing else. Then do
git push origin :staging
git push origin commit-id-that-you-actually-wanted:refs/heads/staging
The first line deletes the staging branch, the second reestablishes it.
--
David Kastrup