SihaoPedia ʕ•ᴥ•ʔ

How to use GitHub

What is GitHub?

One word: a code hosting platform allowing version control and collaboration.

GitHub vs Git

Git is local. Github is remote.

Git Basics

git init creates a new Git repository.

git add adds a local change to the staging area, which is not synced until git commit

git commit captures a snapshot of the staged changes – just like take a photo of the staged repository.

git push uploads the commited respository to the remote repository.

git pull downloads the remote repository to local.

Git Cheetsheet

Create a remote repository

alt text

#Git