#!/usr/bin/env bash cd /tmp/demo ( rm -rf /tmp/demo-remote mkdir -p /tmp/demo-remote git init --bare /tmp/demo-remote git remote remove origin ) > /dev/null 2>&1 echo '$ git remote add origin /tmp/demo-remote' git remote add origin /tmp/demo-remote echo '$ git remote' git remote echo '$ git remote get-url origin' git remote get-url origin