On 9/6/07, Ramagudi Naziir <naziirr@xxxxxxxxx> wrote: > hello all! > > can you please tell me what am I doing wrong here ? > > I am at the master branch. > git checkout -b newbranch //making a new branch and moving to it > vi somefile //change some code. not commit yet because it is not finished > git checkout master //go back to master No you won't be able to change the branch unless you commit your changes to your newbranch. So you effectively remain in newbanch only and thus see the diff. you can verify this using $ git-branch newbranch should have a * in front of it to denote the working branch. HTH thanks > git diff //it seems that all the changes from the newbrach have been > brought here too ! why is that ? > > thank you > naziir > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- play the game -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ