Skip to content

Instantly share code, notes, and snippets.

@cortesben
Last active December 25, 2017 18:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cortesben/5369c537a115f75893b6 to your computer and use it in GitHub Desktop.
Save cortesben/5369c537a115f75893b6 to your computer and use it in GitHub Desktop.
Terminal cheat sheet

#cheat sheet for random BASH Stuff Safe reference for random commands. I will break this up into a better guide in the near future.

#Heroku commands

Commands Description
heroku local web Run the app locally
git push heroku master Deploy to Heroku
heroku open open Browser with app location from command line
Commands Description
npm install installs all items in package.json
npm install repoName installs repo from npm
npm uninstall repoName --save-dev removes from package.json and uninstalls
npm init walk you through making a package.json with prompts

#git commands

Commands Description
git commit --amend -m "New commit message" change last commit message

#Sass commands

Commands Description
sass --watch file.scss:dir/location/file.css This command watches your SASS file and compiles everytime you save
sass --watch --style expanded file.scss:file.css This command formats your CSS like a normal human
sass --watch --style compact file.scss:file.css This compresses rules into one line
sass --watch --style compressed file.scss:file.css Don't even use minify with gulp

#Apache commands

Commands Description
sudo apachectl start To start it
sudo apachectl stop To stop it
sudo apachectl restart To restart it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment