The following project consist of a set of bash scripts that you could use to set up the following:
- Configure your git and github account globally
- Generate your github account SSH Key
- Git config
Change the email address to yours
#!/usr/bin/env zsh
#configure your username
git config --global user.name "username"
#configure your email - must be the same email address directly linked to your github account
git config --global user.email "youremail@here.com"
- Generate github ssh-key
Same goes for this section, input your email address.The process is still the same as per the documentation.
#!/usr/bin/env zsh
#generate ssh-key
ssh-keygen -t ed25519 -C "youremail@here.com"
#add ssh-key to ssh-agent
eval "$(ssh-agent -s)"
#add ssh private key
ssh-add ~/.ssh/id_ed25519
#get the generated ssh key and copy paste it to your github account
cat ~/.ssh/id_ed25519.pub
- Generate gpg-key
The script does its thing up until the last bit which would require manual input.
#!/usr/bin/env zsh
#generate gpg key pair
gpg --full-generate-key
#list long form of your key
gpg --list-secret-key --keyid-format=long
NOTE The following scripts are written and pushed as per the current documentation - timestamp wise
If you are a reader like me I'm gonna leave some links to the offical documentations that brought forth the scripts in question.
Tip: If you want to still be on the repo while going through the documentations just hit CTRL+Click to Open Link in New Tab