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: https://github.com/academic/awesome-datascience
//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: https://towardsdatascience.com/git-cheat-sheet-for-data-scientists-fa0bfdd3690c?source=rss—-7f60cf5620c9—4

Source: towardsdatascience.com