Getting started

Photo by Roman Synkevych on Unsplash

Basic Overview of how Git works:

  1. Create a “repository” (project) with a git hosting tool (like Github)
git init
//add the remote repository
▶️ git remote add origin <HTTPS/SSH>
// clone the repository
▶️ git clone <HTTPS/SSH>
Use the code drop down to find the HTTPS/SSH URL. (screenshot by Author).Reference:
//create a new branch and switch to it at the same time
▶️ git checkout -b <branch-name>
▶️ git switch -c <branch-name>
//simply switch to an existing branch
▶️ git checkout <branch-name>
▶️ git switch <branch-name>
▶️ git pull
▶️ git pull --rebase origin master

Continue reading:—-7f60cf5620c9—4