Skip to content

Instantly share code, notes, and snippets.

@kowey

kowey/github.sh Secret

Last active December 15, 2015 00:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kowey/2da7ead670c28787c080 to your computer and use it in GitHub Desktop.
Save kowey/2da7ead670c28787c080 to your computer and use it in GitHub Desktop.
#!/bin/bash
pushd $(dirname $0) > /dev/null
SCRIPT_DIR=$PWD
REPO=$(basename $SCRIPT_DIR)
popd > /dev/null
cd $SCRIPT_DIR
# should maybe have made this ${REPO}/.branches
BRANCHES_DIR=../${REPO}-branches
darcs push $BRANCHES_DIR/${REPO}_bridge/$REPO -a
darcs-fastconvert sync $BRANCHES_DIR/${REPO}_bridge git
cd $BRANCHES_DIR/${REPO}_git
git pull
git push github master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment