git gush submission always reports Everything up-to-dateDo git add before submission. And git commit - m
看那一行红字。搜下
Why did my Git repo enter a detached HEAD state?
You are on Windows system, right? Why F:testGitdrag>doesn’t it show what branch you are under? Judging from your tip, there is a problem here
F:testGitdrag>
HEAD detached from 515389f nothing to commit, working directory clean
You can try the following execution
git reset --hard e3f1e37 git push --force origin 你的分支
The reason is that you are not currently on any branch. You can switch through git checkout master first.
Why did my Git repo enter a detached HEAD state?
You are on Windows system, right? Why
F:testGitdrag>
doesn’t it show what branch you are under? Judging from your tip, there is a problem hereYou can try the following execution
The reason is that you are not currently on any branch.
You can switch through git checkout master first.