Deleted All Desktop File #150864
Replies: 1 comment
-
|
It sounds like you might have accidentally switched branches or lost your uncommitted work. When you switched from your repository branch to master, your changes didn’t show up because they weren’t committed to master. Here’s what you can try: git branch Look for any branch that might be the one you were working on. If you find it, switch back by running: git checkout your_branch_name Run: git status This command will list any modified files. Sometimes Git shows a huge number of changes because of differences like line endings, so don’t panic if it looks overwhelming. Even if you didn’t commit your work, Git often keeps a record of recent activity. Try running: git reflog Look through the list for a commit or a state where your files were present. If you find one, you can create a new branch from that commit: git checkout -b recovered_commit_hash Sometimes your files are still on your computer even if they’re not showing in VS Code. Open your file explorer and go to your repository’s folder to see if they’re there. Also, check your Recycle Bin or Trash in case they were accidentally deleted. For the future, try committing your work frequently—even if it’s just local commits—so you don’t lose progress. And if possible, set up some form of backup (like Time Machine or cloud backups) to avoid this situation again. I hope this helps, and I’m really sorry you’re dealing with this frustrating situation! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to Github/ Vs Code. I was trying to submit an Assignment and it switch from my created repository to master. Now I can not see any of my file on my desktop. I do not have it I local history and I don't have Time Machine backup . It keeps saying I have 10k changes and I don't have any commit please I need help not blames
Beta Was this translation helpful? Give feedback.
All reactions