Created
July 29, 2020 15:32
-
-
Save gbrian/4511d480f1759c7063f9558812e7329d to your computer and use it in GitHub Desktop.
labs.play-with-docker.com github session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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