Closed JulienMattiussi closed 1 year ago
Trello card #677
The previous command git rev-parse --abbrev-ref HEAD can't give the name of a branch when it's an orphan. It always give HEAD instead
git rev-parse --abbrev-ref HEAD
HEAD
With the new command, we always get the real branch name git branch --show-current
git branch --show-current
Trello card #677
The previous command
git rev-parse --abbrev-ref HEAD
can't give the name of a branch when it's an orphan. It always giveHEAD
insteadWith the new command, we always get the real branch name
git branch --show-current