Upload a local folder to yourown github repo:

git config --global credential.helper cache
#Saves github password for some time defined by the command below:

git config --global credential.helper 'cache --timeout=3600'

Finnished!

To move a branch to master:

> git branch -f master branchToMoveMasterTo >

> >

> What this is actually doing is creating a new branch called master that points to branchToMoveMasterTo. Since we already have a branch called master, we need the -f flag to say we want to delete the original master >