Git Cheatsheet

Initiate repo locally

Pushing to GitHub

Checking status

Some useful repo commands

Undo changes

Discard changes

Stash changes

Also read

  • Time Travel in Your Project: Undo Changes with Git
  • Changing repo folder name

    Branch

    Organizing a project with branches

    Commands

    Merging conflict