[IPython-dev] Pushed to master...

Fernando Perez fperez.net at gmail.com
Sun Apr 3 02:07:32 EDT 2011


Hi Thomas,

On Thu, Mar 31, 2011 at 4:25 PM, Thomas Kluyver <takowl at gmail.com> wrote:
> Apologies for pushing my experimental change directly to master. I had the
> wrong branch checked out. I've pushed another commit to undo it - I
> understand that it's bad practice to remove a commit once it's been
> published.

No worries, it's no big deal.  One way to reduce the likelihood of
this happening is to have your local copy of master *not* be a
tracking branch.  That would mean you'd manually need to do

git push origin master

when pushing, but that's something you *know* you are doing, where as a simple

git push

on a tracking branch is far more likely to happen accidentally.

So in general, unless you like high-wire acts without a  safety net,

http://www.dailymotion.com/video/x4v15s_slackline-basejump-par-dean-potter_sport

it's probably a good idea to have local master not track.


Cheers,

f



More information about the IPython-dev mailing list