Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.29 kb
#!/bin/bash
#
# common-bin
#
BRANCH=$1
if [ -z "$BRANCH" ]; then
echo "usage: me BRANCH"
exit 1
fi
mkdir $BRANCH || exit 1
cd $BRANCH || exit 1
git init || exit 1
git remote add origin https://github.com/axet/home-bin.git || exit 1
git symbolic-ref HEAD refs/heads/$BRANCH || exit 1
Jump to Line
Something went wrong with that request. Please try again.