From e716ac0aa382db9618ea8c2acfd86207d61e45ea Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Tue, 18 Oct 2016 14:19:22 -0700 Subject: [PATCH] Add clone script --- local/bin/clonepuppetmodule.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 local/bin/clonepuppetmodule.sh diff --git a/local/bin/clonepuppetmodule.sh b/local/bin/clonepuppetmodule.sh new file mode 100755 index 0000000..94acc2e --- /dev/null +++ b/local/bin/clonepuppetmodule.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +git clone git@github.com:puppetlabs/$1.git && \ +cd $1 && \ +git remote rename origin puppetlabs && \ +git remote add origin git@github.com:hunner/$1.git && \ +git fetch --all && \ +cd ..