What does git rev-parse do?

git rev-parse is an ancillary plumbing command primarily used for manipulation. One common usage of git rev-parse is to print the SHA1 hashes given a revision specifier. In addition, it has various options to format this output such as –short for printing a shorter unique SHA1. There are other use cases as well (in scripts and other tools built on top of … Read more