Getting the Current Git Branch: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
git symbolic-ref --short HEAD
git symbolic-ref --short HEAD
</syntaxhighlight>
</syntaxhighlight>
[[Git_rev-parse#Currently_Checked_Out_Branch|git rev-parse --abbrev-ref HEAD]]

Revision as of 06:59, 24 July 2020

Internal

Overview

git symbolic-ref --short HEAD
git rev-parse --abbrev-ref HEAD