Getting the Current Git Branch: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=
* [[Git_branch#Getting_the_Current_Branch|git branch]]
* [[Git_branch#Getting_the_Current_Branch|git branch]]
* [[git rev-parse]]
* [[git symbolic-ref]]


=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]]

Latest revision as of 07:02, 24 July 2020