#!/usr/bin/env bash ( rm -rf /tmp/demo-remote mkdir -p /tmp/demo-remote git init --bare /tmp/demo-remote git remote remove origin ) > /dev/null 2>&1 cd /tmp/demo 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