Command Line Interfaces
Git
General
git fetch
git clone
git checkout {branch}
git remote -v
Create & push new Repo:
git init
git add .
git commit -m "First commit"
git remote add origin {remote repository URL}
git remote -v
git push -u origin master
Configure a remote for a fork
git remote -v
git remote add upstream https://github.com/{ORIGINAL_OWNER/ORIGINAL_REPOSITORY}.git}
git remote -v
curl
--proxy or -X
NPM
$ npm ls -g --depth=0
- list all globally installed packages
wifi-password
- wifi password
benny-hill
- Play benny hill
Globs
- * - matches any number of characters (but not
/
) - ? - matches a single character (but not
/
) - ** - matches any number of characters, including
/
, as long as it's the only thing in a path part - { } - allows for a comma-separated list of "or" expressions
- ! - at the beginning of a pattern will negate the match
Mac
Symlinks:
create -ln -s {/path/to/original/} {/path/to/link}
remove - rm {/path/to/symlink}
or unlink {/path/to/symlink}