merge changes on detached branch after git checkout <commit hash>

Viewed 903

I was originally working on git branch named "feature". Then ,I commited my changes .

Then I noticed there are some new created files shouldn't be in my commit. So I found the lastest commit hash 1b33aa (I use git log command).

After that, I did:

git checkout 1b63aa

Then I made more changes (I though I was still on feature branch...my mistake), and commited again.

Then I run git branch ,it prints out :

* (detached from 1b33aa)
  feature

How can I merge back those changes I just made to feature branch now?

1 Answers
Related