Hoedlmosers' personal Git Cheat Sheet
https://git-scm.com/book/en/v2
if I already created my repository in gui with readme and license, but all the source is local, init can be done as following
git init
git remote add origin your-git-url
git fetch
git reset --mixed origin/master
git checkout -- LICENSE
git checkout -- README.md
git add <somefile(s)>
git commit -am "<nice comment>"
git push
# be up-to-date
git pull
# create branch and push
git checkout -b <new-branch>
git push origin <new-branch>
git branch -a
# commit as usual
# merge
git checkout master
git merge <new-branch>
# delete
git branch -d <new-branch>
git push origin :<new-branch>