Adjusts add-remote script to cd before removing remote

master Final
Jonathan Hodgson 4 years ago
parent 56f90b3dae
commit e3e5f7f788
  1. 2
      shell/add-remote

@ -1,5 +1,6 @@
#!/usr/bin/env bash
cd /tmp/demo
(
rm -rf /tmp/demo-remote
mkdir -p /tmp/demo-remote
@ -7,7 +8,6 @@ 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'

Loading…
Cancel
Save