Twitter Feed: Post

Twitter Feed

@bradfitz ("Brad Fitzpatrick") wrote:

TIL I learned about git's ^0 special case.

Got a ref and you're not sure whether it's a commit or a tag but want its commit in either case?

Use ^0 on either and it resolves to its commit or itself (if already a commit)