Skip to content

Instantly share code, notes, and snippets.

View mmellado's full-sized avatar

Marcos Mellado mmellado

View GitHub Profile
@mmellado
mmellado / gsync.sh
Last active May 11, 2017 11:32
Sync your forks
function gsync {
# Before using this script, make sure to add upstream to your local repository
# git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
BRANCH="master"
if [ $# -eq 1 ]
then
BRANCH="$1"
fi