How do I use Git with GitHub?

GitHub is a centralized location for hosting Git repositories (think about it: Git HUB). It is where we can store a copy of our local repository, previously referred to as the server repository.
GitHub also has many other features that can help in keeping track of a project with many collaborators (i.e Issues & Projects tabs for a repository).
Git has four fundamental commands that create versions of documents and updates them to GitHub or your local/remote repositories: git add, git commit, git push, and git pull
  • git add - tells git you want to add a version of a file to your local repository
  • git commit - commit saves the versions of the files you added previously to your local repository
  • git push - push sends the updated local repository to your server repository in GitHub
  • git pull - if you made changes to your server repository through another remote computer, then you use git pull when you want to update your local repository with those changes
Git repositories can store and update almost any file type. I've stored RMarkdowns, jupyter notebooks, python and R scripts, PDFs, and pictures.