You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
343 B

#!/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