Skip to content

Easy set up for git: does git config and SSH key generation

Notifications You must be signed in to change notification settings

codeclan/codeclan-git-setup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codeclan-git-setup

Usage

(Requires Node.js)

In Terminal run:

  • npx https://github.com/codeclan/codeclan-git-setup
  • Say y to Ok to proceed? (y)

Use:

$ npx https://github.com/codeclan/codeclan-git-setup
? What is your name? Fred Flintstone
? What is the email address you sign into GitHub with? [email protected]
Found an existing SSH key.
Please create a new key at https://github.com/settings/keys
SSH key copied to clipboard, just paste it into GitHub.

Context

When you get a new development machine, there are a bunch of things you need to do to set up Git properly, namely:

  • git config --global user.name "YOUR NAME"
  • git config --global user.email "[email protected]"
  • ssh-keygen -t ed25519 -C "[email protected]"
  • copy ~/.ssh/id_ed25519.pub to the clipboard

This script does these things for you!

Updating the script (Instructors):

  • Clone the repo
  • Make changes to index.js
  • Commit / Push to the repo

About

Easy set up for git: does git config and SSH key generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%