git init
git add src
git status
git commit -m"This adds in the first version of the source files."
Connect to Github
ssh-keygen -t rsa -b 4096 -C "<your email address>"
cd ~/.ssh
ls
eval "$(ssh-agent -s)"
----
To kill the agent
pgrep -f ssh
pkill ssh-agent
pgrep -f ssh
----
Next, check if your .ssh directory contains a file named config. If it does, modify it so that its content is the following:
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
Finally, add the key to the agent by running the following in Terminal:
ssh-add -K ~/.ssh/id_rsa
ssh-add --apple-use-keychain ~/.ssh/id_rsa
Step 2: Add the Key to Your Github Account
The next step is to add the SSH key to your Github account. The first thing to do, is to run the following in Terminal:
pbcopy < ~/.ssh/id_rsa.pub
ICON / Settings
set menu to signing key
Then paste it in new SSH Keys
Terminal :
git remote add origin This email address is being protected from spambots. You need JavaScript enabled to view it.:snowbusiness/React-Redux-Toolkit.git
git pull origin master:refs/remotes/origin/master