How to Get the Current Branch Name with git

Publikováno: 28.10.2023

Most developers spoil themselves with fun command line utilities to make their work easier and more efficient. One such command line helper allows developers to always show the git branch in the command line. How can you get the current branch? With this handy snippet: git branch --show-current It’s great to keep this snippet around […]

The post How to Get the Current Branch Name with git appeared first on David Walsh Blog.

Celý článek

Most developers spoil themselves with fun command line utilities to make their work easier and more efficient. One such command line helper allows developers to always show the git branch in the command line. How can you get the current branch? With this handy snippet:

git branch --show-current

It’s great to keep this snippet around for any automation you may create moving forward!

The post How to Get the Current Branch Name with git appeared first on David Walsh Blog.

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace