Skip to content

Comment on Git in six hundred wordsparent

Comments

I wrote a deploy script for our QA system that checks out the commit hash we want instead of the branch and leaves it in detached head mode. Works awesome. Needless to say our ops guys were not amused and demanded it leave it on a branch. People can be do stubbornly stupid sometimes.

It does leave some people worried, but I think it's just because they don't understand what it means. Maybe adding:

     git checkout -B lastdeployed
to the end of your script would leave them happier!
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.