I have a branch in my git repo called "releases" and it contains subdirectories "1.0" and "1.1". I'd like to have these two subdirs become branches at the "releases" level and remove the releases directory entirely. This was a side effect of converting an old svn repo to a git repo (combined with a little inexperience on my part). Is there a simple way to do this? Like maybe move the 1.0 and 1.1 dirs up a level in the local repo, and then do something like:
git checkout -b 1.1
git push origin 1.1
I don't think that is the best solution because it doesn't preserve the history since every file has to get re-checked in. Is there a better approach that doesn't involve a history altering push?