#!/usr/bin/env bash mkdir upstream ghc cd upstream git init echo content > file git add file git commit -a -m initial cd .. git clone upstream ghc cd ghc echo fix1 > file git commit -a -m fix1 cd ../upstream echo fix2 > file git commit -a -m fix2 cd ../ghc git pull --no-edit "$@" cd ../upstream echo feature1 > file git commit -a -m feature1 cd ../ghc git pull --no-edit "$@" cd ../upstream echo feature2 > file git commit -a -m feature2 cd ../ghc git pull --no-edit "$@"