i did this
git checkout origin/master
# made some changes
git commit -a -m "test something"
After this i did a git checkout master
. Then i got this message
Warning: you are leaving 1 commit behind, not connected to
any of your branches:
44af060 test something
If you want to keep it by creating a new branch, this may be a good time
to do so with:
git branch <new-branch-name> 44af060
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
My question is that why this commit does not belong to any branch. I made it on the origin/master head.