Skip to content

Instantly share code, notes, and snippets.

@gbrian
Created July 29, 2020 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbrian/4511d480f1759c7063f9558812e7329d to your computer and use it in GitHub Desktop.
Save gbrian/4511d480f1759c7063f9558812e7329d to your computer and use it in GitHub Desktop.
labs.play-with-docker.com github session
# ssh key
ssh-keygen -b 2048 -t rsa -f /tmp/sshkey -q -N ""
echo "Add key to repository $1"
echo ""
echo ""
cat /tmp/sshkey.pub
echo ""
echo "Press any key to continue..."
read
export GIT_SSH_COMMAND="ssh -i /tmp/sshkey"
if [ "" != "$1" ]; then
git clone "$1"
echo "email for git commit"
read email
git config --global user.email $email
echo "name for git commit"
read name
git config --global user.name $name
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment