Sha256: 242253e06183aa53823d66f50931dd70504d03c59c7f87eb8bb2e96dad31b5c7
Contents?: true
Size: 327 Bytes
Versions: 2
Compression:
Stored size: 327 Bytes
Contents
#!/bin/bash if [ -n "$1" ]; then git fetch BRANCH="$1" git ls-remote --exit-code . origin/${BRANCH} &> /dev/null if [ $? == 0 ]; then git checkout ${BRANCH} git pull origin ${BRANCH} else git checkout --orphan ${BRANCH} git rm --cached -r . git clean -f -d fi git push -u origin ${BRANCH} fi
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
docman-0.0.60 | bin/check-branch.sh |
docman-0.0.59 | bin/check-branch.sh |