1
0
forked from extern/nix-config

Add uniq and git diff staged to help files

This commit is contained in:
Donovan Glover 2017-11-18 02:58:01 -05:00
parent fdaf706896
commit ccedb86bf7
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D
2 changed files with 2 additions and 0 deletions

View File

@ -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 <input_file> | uniq`
### System Commands

View File

@ -13,6 +13,7 @@
- Push changes from your local repository to a remote repository: `git push <remote> <branch>` **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`