How to use Git and Github with Visual Studio Code
** MAC IOS Instructions **
-
Install Git (https://git-scm.com)
-
Create SSH Keys Terminal Commands:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/id_rsa_codrkai
pbcopy < ~/.ssh/id_rsa_codrkai.pub
- Go to Git Hub --> Settings --> SSH & GPG Keys --> New SSH Key, then press CTRL + V to paste the key in. The key should have been copied to your clipboard when you entered the terminal command PBCOPY...
Your Github should now be linked with your SSH Public Key. Now create a Repository and click on "Clone" to copy the SSH URL. Go to VS Code and paste in the Git:Clone URL to start...
Some Basic Git Commands
git init
git status
git add .
git commit -m "ADD A COMMENT"
git push origin master
Some Basic VSCode Commands Bring up the Pallet: CMD + SHIFT + P Bring up the Terminal: CTRL + ~
Show hidden files on Mac CMD + SHIFT + .