Re: disallowing push to currently checked-out branch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 16, 2009, 08:51 UTC
- Message-ID
- <7veixybw7u.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <alpine.LNX.1.00.0902160322530.19665@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
> In fact, if you expect to be pushing to a non-bare repository, you > probably want to have HEAD contain the actual commit currently checked > out (instead of a reference to externally mutable storage), which you > can do with "git checkout refs/heads/master".
"git checkout master^0" is shorter ;-)
For people who do not follow the git list regularly, a "HEAD contain the actual commit" is often called "detached".