forked from extern/nix-config
Add uniq and git diff staged to help files
This commit is contained in:
parent
fdaf706896
commit
ccedb86bf7
@ -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
|
||||
|
||||
|
@ -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`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user