Answers for "git get current branch"

11

how to get current git branch

git branch --show-current
Posted by: Guest on January-17-2021
1

how to check in which brach we are in git

git branch -a # it will show an astrick * like *master
git branch --show-current # source == git remote --help
Posted by: Guest on March-24-2020
3

get current branch name git

git rev-parse --abbrev-ref HEAD
Posted by: Guest on March-31-2020
1

git branch from current branch

git checkout -b <branch-name>
Posted by: Guest on March-09-2021
-1

git get current branch

git branch
Posted by: Guest on August-23-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language