Getting the Current Git Branch: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 4: Line 4:
=Overview=
=Overview=


<syntaxhighlight lang='bash'>
[[Git_rev-parse#Currently_Checked_Out_Branch|git rev-parse --abbrev-ref HEAD]]
git symbolic-ref --short HEAD
</syntaxhighlight>


  [[Git_rev-parse#Currently_Checked_Out_Branch|git rev-parse --abbrev-ref HEAD]]
  [[Git_symbolic-ref#Currently_Checked_Out_Branch|git symbolic-ref --short HEAD]]

Revision as of 07:02, 24 July 2020