Skip to content

Instantly share code, notes, and snippets.

@eliotsykes
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliotsykes/28bbd3f2868296613818 to your computer and use it in GitHub Desktop.
Save eliotsykes/28bbd3f2868296613818 to your computer and use it in GitHub Desktop.
Where to run what on Windows?

Git Bash

Use Git Bash in Windows for:

  • subl commands (e.g. subl ., subl myfile.rb) to open files with Sublime Text
  • git commands (e.g. git add ., git commit -m "message" README.md, git push heroku master)
  • vagrant commands (cd ~/dev-rails-box first)
  • open commands

Vagrant VM

SSH to the Vagrant VM for:

  • rails commands (e.g. rails s, rails g ..., rails console, rails db)
  • rake commands (e.g. rake db:migrate)
  • irb The Ruby interactive shell
  • ruby commands (e.g. ruby my_ruby_program.rb)
  • heroku commands (e.g. heroku config, heroku logs)

Windows Command Prompt

Use the Windows Command Prompt for:

  • start and explorer commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment