Re:Git Koans (2013)
by glitchdout on Thursday January 12, 2017 @10:52AM
(#13383154)
That hasn't been true since 2010-02-13, when Git v1.7.0 was released.
https://github.com/git/git/blob/master/Documentation/RelNote...
Re:Git Koans (2013)
by pwdisswordfish on Thursday January 12, 2017 @11:00AM
(#13383243)
I actually quite like this syntax for deleting remote branches. You can think of it as a special case of
git push $remote $local_commit:$remote_branch
which updates the remote ref $remote_branch so that it points to $local_commit; here it updates the remote ref so that it points to nothing (which means deleting it). Sure, this is inconsistent with other git commands, but it's not completely illogical. Though I'd probably prefer something like git push $remote $remote_branch=$local_commit
where the '=' makes you think of assignment, hinting at what this command actually does.
I would add a third example, deleting a remote branch, which (at least as of 2013) is
Neither `-d` nor `rm`!