Skip to content

Instantly share code, notes, and snippets.

View fabriciocmello's full-sized avatar

fabriciocmello

View GitHub Profile
@fabriciocmello
fabriciocmello / 2repos-sync.sh
Last active February 20, 2017 16:54 — forked from yorammi/2repos-sync.sh
Sync 2 remote repositories script - Just define the 3 variables (use export command for that!)
#!/bin/bash
REPO_NAME=pingou-internal.git
[email protected]:fabriciocmello/pingou.git
[email protected]:fabriciocmello/pingou-web.git
rm -rf $REPO_NAME
git clone --bare $ORIGIN_URL
if [ "$?" != "0" ]; then
echo "ERROR: failed clone of $ORIGIN_URL"