[mythtv-users] git & wiki

Justin Johnson justin.johnson3 at gmail.com
Wed Dec 8 20:12:31 UTC 2010

On Wed, Dec 8, 2010 at 2:37 PM, Michael T. Dean <mtdean at thirdcontact.com> wrote:
>  On 12/08/2010 02:20 PM, Jarod Wilson wrote:
>> On Dec 8, 2010, at 11:32 AM, Udo van den Heuvel wrote:
>>> Even better!
>>> But it doesn't always work:
>>> [root at recorder mythweb.git]# pwd
>>> /usr/src/mythweb.git
>>> [root at recorder mythweb.git]# git describe | cut -d- -f 3
>>> fatal: No names found, cannot describe anything.
>>> [root at recorder mythweb.git]# git show HEAD | head -1 | awk '{print $2}'
>>> 52cb8fb98f1aa209cfd2befa92a9cdd0b7841070
>>> How come?
>> Not sure how you managed that, I've never had it not work. Are
>> you running that in a local branch and/or with a detached HEAD?
> That happens in all the repos which have no tags/names on the master branch
> (i.e. everything except mythtv).
> git describe --always
> will give you the SHA1 abbreviation.
> However, I'd recommend using --dirty, too, so you can see if it's a modified
> copy:
> git describe --always --dirty
> Mike

As a suggestion, git allows for aliases to be defined in your .gitconfig file

    desc = describe --always --dirty

then use:
git desc

Also, for cloning and checking out a specific branch you can use:
git clone git://github.com/MythTV/mythtv.git -b fixes/0.24
to check out the 0.24-fixes branch in one go.

git pull
to get updates.

Really, just read the git man pages. They're insanely helpful and I've
never seen a set of man pages that are so complete.

More information about the mythtv-users mailing list