Back to Writing
NOTESgitversion-controlcheat-sheetclideveloper-tools

Git Quick Reference Guide

May 3, 2020Updated Feb 17, 2026
  1. Create a Git repository

git init

  1. Set up user

git config --global user.name "Name"

git config --global user.email "Email"

  1. Stage all files

git add --all

  1. Commit

git commit -m "Content"

  1. Add remote repository

git remote add origin <path>

  1. Push

git push -u origin master

  1. Pull

git pull origin master

  1. Clone

git clone <repository-path>