I did changes on submodule and wanted to make pull request.
But currently getting "following Head detached from xxxx" error and I cant push it.
Do you know how can I solve it?
HEAD detached from a9cd50a
nothing to commit, working tree clean
I did changes on submodule and wanted to make pull request.
But currently getting "following Head detached from xxxx" error and I cant push it.
Do you know how can I solve it?
HEAD detached from a9cd50a
nothing to commit, working tree clean
A submodule is always checked out as detached head, unless you set the relevant configuration:
git config -f .gitmodules submodule.<submodule-path>.branch <branch>
git submodule set-branch --branch aBranch -- <submodule_path>
)From the submodule folder, you can:
git fetch
+ git branch -avv
git switch -c a_new_PR