Git branch another branch from current branch
Your current branch is master and if u create another branch like that git branch develop,then in branch develop you will have similar code about master。how can i get an empty branch.
One Solution collect form web for “Git branch another branch from current branch”
You can create an orphan branch, which start without parent, and will be effectively “empty”.
git checkout --orphan develop
This is since git 1.7.2: see “In git, is there a simple way of introducing an unrelated branch to a repository?”.