This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Creating the Vagrantfile | |
| vagrant init | |
| Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile. | |
| vagrant init boxpath | |
| Initialize Vagrant with a specific box. To find a box, go shopping. When you find one you like, just replace it's name with boxpath. For example, vagrant init chef/centos-6.5. | |
| Vagrantfile customizations | |
| vagrant.configure("2") do |config| | |
| config.vm.box = "chef/centos-6.5" | |
| # guest is the VM; host is your computer end | |
| config.vm.network "forwarded_port", guest: 80, host: 8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Show status of current changes | |
| git status | |
| # Revert a single file to the last commit | |
| git checkout <filename> | |
| # Checkout pull request from GitHub | |
| git fetch origin pull/<id>/head:<local-branchname-for-pr> | |
| git checkout <local-branchname-for-pr> |