I need to create a new clean branch, but since git is impossible, I choose the most popular configuration. Next, create a new branch with the command git checkout --orphan new-name
and then make a minor change in any file and perform add
and commit
. Next, I will remove the file from, as I thought, a new branch, but it is removed from the branch from which I created the current one. Is this supposed to be? How to create a new clean branch in order not to repeat the above?