It is a free and open-source version control system used to handle small to very large projects efficiently. Otherwise input translation and validation tends to proliferate through the script. Tutorial Playlist Table of Contents What is Git Features of Git Git Workflow Branch in Git Commands in Git Git is a DevOps tool used for source code management. Frequently in scripting Git you take a user-friendly commit reference as user input and generally want to get it resolved to a validated and unambiguous working reference as soon after receiving it as possible. I know I was thinking it was "reverse-parse" something for quite a while before I figured it out and had the same trouble making sense of the terms "massaging" and "manipulation" :)Īnyway, I find this "parse-to-a-revision" notion a satisfying way to think of it, and a reliable concept for bringing this command to mind when I need that sort of thing. While the command has the several ancillary functions mentioned in Tuxdude's answer, its namesake appears to be the use case of transforming a user-friendly reference like a branch name or abbreviated hash into the unambiguous 40-character SHA1 hash most useful for many programming/plumbing purposes. In this case the name might be expanded to parse-a-commitish-to-a-full-SHA1-hash. The command rev-list for example prints a list of 40-char commit hashes for a branch or whatever. Just to elaborate on the etymology of the command name rev-parse, Git consistently uses the term rev in plumbing commands as short for "revision" and generally meaning the 40-character SHA1 hash for a commit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |