From ccedb86bf7c97c21915698a66416ad1ff5ec684a Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 18 Nov 2017 02:58:01 -0500 Subject: [PATCH] Add uniq and git diff staged to help files --- help/commands.md | 1 + help/git.md | 1 + 2 files changed, 2 insertions(+) diff --git a/help/commands.md b/help/commands.md index 89356ffa..9b244662 100644 --- a/help/commands.md +++ b/help/commands.md @@ -41,6 +41,7 @@ Note that for all of the above, `cd` is not required. - In comparison, a hard link is when you make a copy of the file - Change the permissions of a directory to all users: `chmod -R a+rwX dir/` - Give permissions to the user `hello` and the group `world`: `chown -R hello:world dir/` +- Given text input, return only unique lines (aka no duplicates): `cat | uniq` ### System Commands diff --git a/help/git.md b/help/git.md index d39bc621..40070114 100644 --- a/help/git.md +++ b/help/git.md @@ -13,6 +13,7 @@ - Push changes from your local repository to a remote repository: `git push ` **OR** `git push` **OR** `gp` - The most common use is `git push origin master`, which is usually the default for `git push` - Show the difference between the staging area and the working tree: `git diff` **OR** `gd` + - Show the changes that you added but haven't committed yet: `git diff --staged` **OR** `gd --staged` **OR** `gds` - Show a log of all the commits: `git log` (full log) **OR** `git lg` (commits only, easier to read) - Edit the last commit message: `git commit --amend`