When I create branch in git, all the created files are added to the new branch.
How can I create a branch without adding all the existing files?
git checkout --orphan branchname git rm -rf .
After doing that you can create, add, and commit new files and the resulting branch will have no common history with any other branches in your project (unless you merge them at some point).