I made few local changes in the master in git repository and released I have to create a new branch. I created a new branch and committed the changes using
git checkout -b changes
git add <files>
git commit -m "new feature in branch"
The name of modified file is "run.pl". Before the new branch, git status on master was
On branch master
Changes not staged for commit
modified run.pl
Untracked files
build1.pl
After the new branch, git status in master is
On branch master
Untracked files
build1.pl
I could not understand how git status on master can change when I committed the changes only to a branch