Skip to content

Instantly share code, notes, and snippets.

View vitamin's full-sized avatar

David Wang vitamin

  • Beijing
View GitHub Profile
@vitamin
vitamin / sync.sh
Created March 22, 2013 02:31 — forked from leemars/sync.sh
#!/bin/bash
if [[ $# != 1 && $# != 2 ]]
then
echo "$0 <path to git repository> [tree-ish]"
exit 1
fi
msg() {
echo -e -n "\e[32;1m==>\e[0m "