code. hack it.

this is my blog. there are many like it but this one is mine.

Stuff I Always Forget


This is just a collection of commands I find myself looking up again and again. Hopefully by putting them here, they'll sink in :)

git remote set-url origin /vagrant
git remote set-url origin git@github.com:<username>/<repo>.git
git checkout --track origin/<other-branch-name>
git checkout -b new-branch
git commit -m "changes"
# new changes are merged into master inbetween time
git checkout new-branch
git rebase master

Vim folding:

# with visual select
zf
za

Coverage:

coverage run --source='.' --omit='*migrations*','*tests*' ./manage.py test; 
coverage report -m | tail -n +2 | grep -v '100%' | sort -k4 -r;
screen
# start server or what not
ctrl-a d
# get back:
screen -r