ICE-5
1/16/2020 - 6:21 PM

git special detached-head

1. Check branches

git branch -v

2. Create a temporary branch

git branch temp

3. Move detached content to it

git checkout temp

4. Check status, solve any collision

git status

5. Switch back to the maintained branch, e.g. master

git checkout master

6. Merge temp into master

git merge temp

7. Check status, solve any collision

git status

8. Delete branch temp

git branch -d temp