Have a look at this super helpful Cheat Sheet from Github to get you started.
I prefer to use the Github Flow Method so that there are no long living branches and it encourages me to release often.
Another popular git branching strategy is called Gitflow. It's worth reading about this too as it's used in many large companies.
- Sign into github, click on your pic in the right top corner and select
settings. - Click on the tab
SSH and GPG Keys. - Click
New SSH Key. - Open a new terminal.
- Type
ssh-keygen -t rsa. - Follow the prompt keeping all default, you may choose a password if you wish.
- You should get something that looks like a square ascii art masterpiece. Your keys have been created.
- Type
cd ~/.sshto change directory to.ssh. - Type
lsto view all files. - Type
more id_rsa.pub. - Copy ALL the text it returns.
- Paste into Github
Keysections and give it a title that describe which laptop you're using. - Click
Add SSH Key. - All done, now you can clone repositories using SSH.