git branch/checkout problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux