COMP 20: Web Programming

Revision Control with Git

Distributed Revision Control Software


Basic Git Commands

  1. git clone GIT_URL - Download a copy of a repository
  2. git pull - Update your repository with latest changes from remote
  3. git add - Add file(s) to your staging area
  4. git commit - Record your snapshot into your history; "bless" your work
  5. git push - Upload your changes to the remote repository (e.g., GitHub)
  6. git log - Show commit logs

Reverting to a Previous Commit