Branches

git checkout -b new-branch — creates new branch with name “new-branch” and switches to itgit merge master — merges into current branch from branch with name “master”. Optional --no-commit can be passed in order not to commit after merge (In case you need some more changes for example)git log new-branch..master — lists all commits on branch “master” which are not in branch “new-branch”git branch -d branch-name — deletes branch