Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# current Git branch
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
# initialize develop and master branch names
devBranch=develop
masterBranch=master
# update develop branch