Archive:
Subtopics:
Comments disabled |
Thu, 30 Nov 2017 Another public service announcement about Git. There are a number of commands everyone learns when they first start out using Git. And there are some that almost nobody learns right away, but that should be the first thing you learn once you get comfortable using Git day to day. One of these has the uninteresting-sounding name
A pretty frequent question is: How do I find out the commit ID of the current HEAD? And the answer is:
or if you want it abbreviated:
But more important than the command itself is the manual for the command. Whether you expect to use this command, you should read its manual. Because every command uses Git's bewildering variety of notations, and that manual is where the notations are completely documented. When you use a ref name like Did you know that if you have an annoying long branch name like
into Did you know that you can write Did you know that you can write Did you know that there's a powerful sublanguage for ranges that you can
give to Once I got comfortable with Git I got in the habit of rereading the
Check it out. It's an important next step. [ Previous PSAs:
] [Other articles in category /prog] permanent link |