Skip to content

Instantly share code, notes, and snippets.

View jhcao23's full-sized avatar

John Cao jhcao23

View GitHub Profile
@jhcao23
jhcao23 / git-cheat-sheet.md
Created February 28, 2018 02:39 — forked from juristr/git-cheat-sheet.md
My Git cheat sheet

Git Cheat Sheet

Committing and Undoing

Adding file for committing

$ git add <filename>
@jhcao23
jhcao23 / git-cheat-sheet.md
Created February 28, 2018 02:31 — forked from iansheridan/git-cheat-sheet.md
A cheat sheet for GIT

Setup

git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file: