I was on a branch in Git, doing some work. Then I decided to check out one of my previous commits on that branch using the commit’s hash, with git checkout -b new_branch 6e559cb. Now when I enter “git branch” it says that I’m currently on “(no branch)”. How do I merge this no-branch into the branch it was split from? Thanks!
I was on a branch in Git, doing some work. Then I decided to
Share
If somehow your command didn’t create a branch at 6e559cb, you simply can create one now (where you are currently in “no branch”, that is “detached HEAD” mode.