I am working on a git repository with a main branch and another theme branch. I switched to the topic thread and changed the file. Now, if I switched to the main branch, the same file will be shown as modified.
For example:
git status in the git -build branch:
# On branch git-build # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: cvsup_current #
Switch to Lead Branch
[root@redbull builder_scripts (git-build)]
git status in the main branch
[root@redbull builder_scripts (master)]
Why is the file displayed as changed in the main branch, although it was changed in the git -build branch?
I realized that the branches are independent of each other, and when I move from one branch to another, the changes do not "flow" from one branch to another. So I obviously missed something here.
Anyone got a clue?
git git-branch
Rajkumar S Oct 29 '08 at 9:58 2008-10-29 09:58
source share