Skip to content

Instantly share code, notes, and snippets.

View loranallensmith's full-sized avatar
👨‍🌾
Gardening.

Allen Smith loranallensmith

👨‍🌾
Gardening.
View GitHub Profile
@kmorcinek
kmorcinek / git commands.txt
Last active September 30, 2023 09:16
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.