Skip to content

Instantly share code, notes, and snippets.

@vimaloctavius
Last active September 11, 2020 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vimaloctavius/260d446817c5911498f12678a86228e5 to your computer and use it in GitHub Desktop.
Save vimaloctavius/260d446817c5911498f12678a86228e5 to your computer and use it in GitHub Desktop.
Github Basics on the command line
Install git bash for windows
git --version
To configure user name:
git config --global user.name "YourUserName"
git config --global user.email "YourEmail@domain.com"
Create a new repository on github
To clone the repository you can use http or ssh
For SSH: Search for "Generate SSH key github" and follow steps from github help page. It will direct you
to goto command line and type:
ssh-keygen -t rsa -b 4096 -C "YourEmailAddressHere"
Will ask for file to save SSH key, hit Enter for default file.
Next, hit enter again at the prompt for passphrase, hit enter again to see the key's randomart image
Navigate to the hidden directory:
cd ~/.ssh
dir to view contents: will show rsa and rsa.pub (private and public keys)
Now add SSH key to the SSH agent
<This document is in progress and will be updated shortly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment