Git 101 (very very basics)

Material for Platform Based Development

Git 101 (very very basics)

Summary

git will allow us to connect to a repository, which is a virtual location where we will store code. You can think of it as a Google Drive with many many more features for developers.

Git is included by default with the Linux WSL.

Requirements

git is included in the Ubuntu WSL that we are using. However, we will need to install the GitHub Cli for this session. Follow the installation instructions in this guide.

Create a repository in Github website

It's pretty intuitive but instructions are also available here.

Basic operations (using simple words)

gh repo clone owner_github_id/repo_name

You can also use git command but you need to setup a token in your computer:

git clone repo_url

git pull

git status

git commit -am "A message"

git add .

git push

Fork

Pull request from a fork

Issues