#git #git-repository #show #branch #name #nothing #repo

app gitbranch

It simply shows current branch name - or nothing if it isn’t a git repo

8 releases (1 stable)

1.0.1 Nov 1, 2024
1.0.0 Jun 6, 2023
0.1.7 Jun 6, 2023
0.1.6 Apr 5, 2023
0.1.5 Mar 31, 2023

#264 in Command-line interface

Download history 77/week @ 2024-07-27 4/week @ 2024-09-21 80/week @ 2024-10-26 53/week @ 2024-11-02 3/week @ 2024-11-09

136 downloads per month

BSD-3-Clause

4KB

gitbranch

It simply shows current branch name - or nothing if it isn’t a git repo.

Build and install

cargo install gitbranch

Use

gitbranch [<directory>]

Directory defaults to current working directory.

License: BSD-3-Clause

Dependencies

~11MB
~247K SLoC