2

In my ios project I use git as scm. Xcode listing of repositories includes something called (by xcode at least) "(no branch)". Some time ago I probably checked out a previous commit, without creating a branch. Since then I have made some 40 commits. Now I want to branch from my next last commit. I am a little worried what might happen and want to know how to get back to some decent branch structure.

Per Arve
  • 226
  • 2
  • 7

1 Answers1

0

You did some commits while being in a detached head. You can still create a new branch that will point to the tip of the detached head:

 git checkout -b my_new_branch

This will create and checkout the new branch.

ouah
  • 142,963
  • 15
  • 272
  • 331