Getting the Current Git Branch: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(2 intermediate revisions 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= | ||
[[Git_rev-parse#Currently_Checked_Out_Branch|git rev-parse --abbrev-ref HEAD]] | |||
git symbolic-ref --short HEAD | |||
[[Git_symbolic-ref#Currently_Checked_Out_Branch|git symbolic-ref --short HEAD]] |