Question: how to check if a branch exists in git?
Answer: To check the branch in the local repository. # Local: # https://stackoverflow.com/questions/21151178/shell-script-to-check-if-specified-git-branch-exists # test if the branch is in the local repository. # ... 
To check the branch in the remote repository.