I have two questions : I added a new branch to my local repo, so I have two 'master' and the new one 'new'. I added and committed some files in new, but when I switch back to master, the new added files are still in master. How can it be ?
By the way, I want to add a lot of files in new that I don't want to appear in master wen I merge new and master (but perhaps I need this 'excluded master merged files' to be merged in other branches). I know about .gitignore but here I want to restrict the merge to some specific files, how to do that (I have heard about submodules but it doesn't seem to math my specific issue)