Skip to content

Instantly share code, notes, and snippets.

View monatheoctocat's full-sized avatar

Mona Lisa Octocat monatheoctocat

View GitHub Profile
@monatheoctocat
monatheoctocat / git commands.txt
Created March 8, 2019 16:03 — forked from kmorcinek/git commands.txt
Git Commands. My common scenarios for using git.
# good git book
http://git-scm.com/book
# Discard uncommitted changes in a specific file
git checkout file_name
# Clear everything not in repo
git checkout -- .
# A way to quickly move to the previous commit in a git branch. This also way for "deleting" last commit.