84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
git gush提交总是报Everything up-to-date提交前有做git add . 与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.