Another git question ...

I created a "mychanges" branch with "git branch mychanges".

I run git branch and I see a * beside "mychanges" in the list of branches.

I make a small test edit to a file (src/GUI/MapWidget.cxx).

I run "git checkout next" to return to the pristine unchanged branch that
tracks the head on gitorious --- but here is the output:

$ git checkout next
M src/GUI/MapWidget.cxx
Switched to branch 'next'

$ git branch
  maint
  mychanges
* next

"next" is the current branch, but the change I made in the mychanges branch
to MapWidget.cxx is still visible.

What am I missing?  Why is a change that I made in one branch being shown in
a different branch?

Thanks,

Curt.
-- 
Curtis Olson:
http://www.atiak.com - http://aem.umn.edu/~uav/
http://www.flightgear.org -
http://www.flightgear.org/blogs/category/curt/<http://www.flightgear.org/blogs/category/personal/curt/>
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to