Suppose i have branch master in the master i created one.c, then committed the changes
then i created another branch called new_branch, and checked into it then added two.c, then committing the changes
when i checkout to master again, two.c is still present in the working directory
i need a way by which, upon checkout a specific branch, the directory tree goes bach to what it was
in my case , upon switch to master , i want not to see two.c in the currect directory and if i checkout new_branch , two.c appears again
How this can be done?