Getting the Current Git Branch: Difference between revisions
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]] | |||
[[Git_symbolic-ref#Currently_Checked_Out_Branch|git symbolic-ref --short HEAD]] | |||
git symbolic-ref --short HEAD | |||