Getting the Current Git Branch: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * <syntaxhighlight lang='bash'> git symbolic-ref --short HEAD </syntaxhighlight>")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=
*  
* [[Git_branch#Getting_the_Current_Branch|git branch]]
* [[git rev-parse]]
* [[git symbolic-ref]]


=Overview=


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


<syntaxhighlight lang='bash'>
[[Git_symbolic-ref#Currently_Checked_Out_Branch|git symbolic-ref --short HEAD]]
git symbolic-ref --short HEAD
</syntaxhighlight>

Latest revision as of 07:02, 24 July 2020