Show Menu
Cheatography

General commands Cheat Sheet (DRAFT) by [deleted]

General commands

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Linux

 
   

git

Undo last commit, unstage and remove changes
git reset --hard HEAD^
Undo last commit and unstage
git reset HEAD^
Undo last commit
git reset --soft HEAD^
HEAD refers to the tip of the currently checke­d-out branch.

The ^ is a notation which can be attached to any commit specifier and means "the commit before­".