limit forced checkout into master and dev branches only