Delete branch

Local branch: git branch -d the_local_branch

Remote branch: git push origin :the_remote_branch or git push origin --delete the_remote_branch

Reset to Upstream

# ensures current branch is master
git checkout master

# pulls all new commits made to upstream/master
git pull upstream master

# this will delete all your local changes to master
git reset --hard upstream/master

# take care, this will delete all your changes on your forked master
git push origin master --force

Get log

git log --pretty=format:"%h %s" --graph