Things I keep Needing to Look Up

October 5, 2019   

This will be a post I keep updating as it keeps track of things I keep forgetting


See a git commit log that is nice and neat, including what stage remotes and branches are at.

git log --oneline --decorate


To compress a folder (create, verbose, compress, files) with full file path

tar -cvzf folder.tar.gz /path/to/folder

To skip the subfolders

tar -cvzf folder.tar.gz --directory=/path/to folder

Then extract them with

tar -xvf folder.tar.gz