Git rev-parse: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
=Overview= | =Overview= | ||
=Currently Checked Out Branch= | =Currently Checked Out Branch= |
Revision as of 04:37, 16 July 2020
Internal
Overview
Currently Checked Out Branch
Return the currently checked out branch in the current work tree:
git rev-parse --abbrev-ref HEAD
Other Options
--is-inside-work-tree
Returns true if inside a working tree, including the main working tree.