What is GitHub

GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.

Hello World - GitHub Docs

Creating Repositories on GitHub

1. Add origin

$ git remote add origin [url]

Specifies the remote repository for your local repository. The url points to a repository on GitHub.

2. Clone Repo

$ git clone [url]

Clone (download) a repository that already exists on GitHub, including all of the files, branches, and commits


.gitignore file

Sometimes it may be a good idea to exclude files from being tracked with Git. This is typically done in a special file named .gitignore. You can find helpful templates for .gitignore files at github.com/github/gitignore.


Synchronize changes from GitHub

1. git fetch

Downloads all history from the remote tracking branches.