I\'m setup AWS CodeBuild to build automatically from GitHub. Other CI services provide an environment variable for the branch, but I can\'t find one for AWS CodeBuild. There is
You can run:
git branch -a --contains
-a means all branches. If your sha is in no branch, which could happen in some cases, you won't see anything.
-a