What I do is:
git branch sth
git checkout sth
- (Twice):
git add -A
git commit -m ""
git checkout master
git merge sth
git branch -d sth
But I must be doing something wrong because I only get a vertical line graph of commits for my local repository without any commits going to a branch. Any tips how to solve my problem?