ACA Python Task Force
Python
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
conf
examples
file_parser
flask_warmup
.gitignore
README.md

README.md

Python Task Force

:octocat:

Pre-install these applications

VagrantFile

# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "https://s3.amazonaws.com/austincodingacademy/boxes/pyVagrant.box"
  config.vm.network "private_network", ip: "10.10.10.33"
  config.vm.synced_folder "repos", "/home/vagrant/repos"
end

VMs /etc/hosts entry

10.10.10.33 aca.local

MySQL Credentials (Local to VM)

  • host: localhost
  • username: root
  • password: something
  • database: acadb
$ mysql -u root -p -h localhost
Enter Password: something

Vagrant Commands

Boot up VM

$ vagrant up

SSH into VM

$ vagrant ssh

Stop the VM

$ vagrant halt

Git commands

View the status of your staging area

$ git status

Add one file to staging area

$ git add myfile.py

Add multiple files to staging area

$ git add .

Commit all staged files

$ git commit

Commit all modified unstaged files

$ git commit -a

View all remote branches

$ git branch -r

Get all remote branches

$ git pull

Checkout an existing remote branch

$ git checkout githubBranch

Create a new local branch

$ git checkout -b myNewLocalbranch

Push a newly created local branch to remote

$ git push -u origin myNewLocalBranch

Push to remote when local branch and remote branch exist and have the same name

$ git push

Incorporate all changes that are in the remote tracking branch into your local branch

$ git pull

View history of all commits

$ git log

Reset your working directory to a pristine state (Note this will wipe out any changes you made)

$ git reset HEAD --hard