Skip to content

A basic script project that let's you globally configure your github and also generate keys like ssh all in one repo

Notifications You must be signed in to change notification settings

Work-With-Phoenix/github-setup-config-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Work With Phoenix

Github Setup

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

Get your git on

  1. 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"
  1. 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
  1. 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

More Information

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

About

A basic script project that let's you globally configure your github and also generate keys like ssh all in one repo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages