All Questions
1
question
7
votes
1
answer
6k
views
Right and fast way to test git directory and git branch?
While trying to set up my new fish shell prompt, I ended up testing ways to get the branch name and also testing if I was on a git repository. I have found (1) git rev-parse --abbrev-ref HEAD, (2) git ...