#!/bin/bash
BRANCH="your-branch-name"
# Replace above value with the URL of your git repository
REPO_URL="https://github.com/lsst-dm/qserv-ingest.git"
if git ls-remote --exit-code --heads "$REPO_URL" "$BRANCH"
then
echo "REMOTE BRANCH EXISTS"
else
echo "REMOTE BRANCH NOT FOUND"
fi