After git executes the command, all the local files are missing

here are the commands I executed. After execution, the entire project and local files disappeared.

112  git push origin master
  113  git log
  114  git reset --hard be96c49eb39e0dd82ef0e68bbf0a13f247418286
  115  git log
  116  git reset
  117  git log
  118  git reset be96c49eb39e0dd82ef0e68bbf0a13f247418286
  119  git log
  120  git reset --soft commit~3
  121  git status
  122  git-reset-soft
  123  git reset --soft commit
  124  git reset --soft commit
  125  git checkout --orphan latest_branch
  126  git checkout --orphan master
  127  $ git checkout --orphan master
  128  git checkout --orphan master
  129  git branch -m master
  130  git log
  131  git branch -D lastest_branch
  132  git branch -D latest_branch
  133  git checkout master
  134  git branch -D latest_branch
  135  git log
  136  git revert be96c49eb39e0dd82ef0e68bbf0a13f247418286
  137  git add .
  138  git status
  139  git add .
  140  git add .
  141  git log
  142  git
  143  git status
  144  git add .env
  145  git add vendor/
  146  git add .vendor/
  147  git commit -m "kyh"
  148  git status
  149  git status
  150  git history
  151  git checkout be96c49eb39e0dd82ef0e68bbf0a13f247418286
  152  git checkout .
  153  git log
  154  git push
  155  git push origin master
  156  git remote -v
  157  git log
  158  git log
  159  git log
  160  git checkout be96c49eb39e0dd82ef0e68bbf0a13f247418286
  161  history

I wrote it in the larval framework, and now the whole project code is basically lost!

clipboard.png

Nov.08,2021

Why, I'm not sure why the code didn't fall off. Use the git reset-hard version number; directly retrieve the original code


see that you have the reset operation, is reset to the submission a long time ago?


is it cut to another branch

Menu