Last active
September 11, 2020 07:09
-
-
Save vimaloctavius/260d446817c5911498f12678a86228e5 to your computer and use it in GitHub Desktop.
Github Basics on the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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