Update setup_git.sh

This commit is contained in:
2025-09-01 16:48:58 +02:00
committed by GitHub
parent ce2eec9187
commit 4a992d5cb6

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "Get the github key and enter it." && sleep 2 echo "Get the github key and enter it." && sleep 2
nvim ~/.ssh/id_github && chmod 600 ~/.ssh/id_github nano ~/.ssh/id_github && chmod 600 ~/.ssh/id_github
echo "alias sg=\"GIT_SSH_COMMAND='ssh -i ~/.ssh/id_github' git clone git@github.com:ascyii/dotfiles.git\"" >> ~/.bashrc echo "alias sg=\"GIT_SSH_COMMAND='ssh -i ~/.ssh/id_github' git clone git@github.com:ascyii/dotfiles.git\"" >> ~/.bashrc
git config --global user.name "Jonas Hahn" && git config --global user.email "jonashahn1@gmx.net" git config --global user.name "Jonas Hahn" && git config --global user.email "jonashahn1@gmx.net"