git - Egit Creating a new local branch from remote master -
i have configured 1 repository in github "myrepository"`
in repository, have 1 branch "master"
and in branch have 1 project "test"
in eclipse created 1 local repository, structured of repository follows.
> gitrepo --> branches -> local ---> master --> remote tracking -> origin/master --> tags --> references --> remotes --> origin --> git@github.com:testusr/myrepository.git --> working directory --> test
now suppose have work on 1 defect, created on local branch remote "master" branch like
> gitrepo --> branches -> local --> defect123 --> master
i switched branch "defect123" , suppose working on 1 file "myfile". problem occurs on here ever changes making in "myfile" in "defect123" branch, reflecting in "myfile" in "master" branch on same time.
why happening. in advance
what mean "it reflecting in 'master' branch on same time"?
if checkout of "master" , have uncommited changes in "defect123" changes merged "new" checked out working set.
if commit changes in "defect123" or stach changes before checking out "master" "clean" "master".
Comments
Post a Comment