git clone https://luca_de_alfaro@bitbucket.org/luca_de_alfaro/bottle_intro.git
cd bottle_intro
git checkout class2
In order to use the above code, you need to install bottle.py .
I recommend giving a glance to the bottle.py documentation. Other resources that may be useful to you:
Python primer (a notebook I wrote)
Here are some commands that form a quick git primer, thanks to our TA Lourdes:
# Print current branch (denoted by *):
git branch -a
# Switch to "branch_name":
git checkout <branch_name>
# Update (fetch any updates):
git fetch
# For example, after cloning web2py_start, do:
cd web2py/applications/start
# Check current branch (the default is usually "master"):
git branch -a
# Switch to the "2018-fall-hw2" branch:
git checkout 2018-fall-hw2
# Confirm switch - check current branch:
git branch -a
# Make sure it is up-to-date - fetch any updates:
git fetch