On Thu, Sep 10, 2009 at 12:22 AM, QT<chyi....@gmail.com> wrote:
> git checkout branch_1
> git checkout head;
> git add file_1;
> git commit -a -m"prepare to add init()";

So you commited it to branch_1

> git checkout master.

And now you've checked out the master branch.

> It seems my commit of add file_1 is disappeared.
> Can I find it?

It should be on the branch

git checkout branch_1

and the file should be in your working set.

Now if you want to merge the changes back to master:

git checkout master
git merge branch_1

Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to