vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Git init deletes my workspace files

Open joaomoreno opened this issue 10 years ago • 10 comments

from @Tomamais:

Awesome! Just trying the integrated git option and you delete my ENTIRE FOLDER! CONTENT NO TRASH!!! #epicfail on an unversioned project/folder, just hit the git button. Kaboom!

joaomoreno avatar Feb 10 '16 16:02 joaomoreno

@Tomamais

Which OS (& version) do you have? Which version of VS Code do you have? Which version of git do you have?

What happens when you use the command prompt (or terminal), go into your workspace and run git init? Do the files disappear from Code there as well?

joaomoreno avatar Feb 10 '16 16:02 joaomoreno

Microsoft Windows [Version 10.0.10586] Visual Studio Code Commit: a80232bbcfe8a5cdad1ebc98638673d9dcb02458 Date 2015-12-19T11:34:58.895Z Shell 0.34.5 Renderer 45.0.2454.85 Node 4.1.1

Tomamais avatar Feb 10 '16 17:02 Tomamais

No. I started a new folder project at that time. When I clicked on the git button, my folder has just disappeared with all code together

Tomamais avatar Feb 10 '16 17:02 Tomamais

Which git version do you have?

What do you mean by git button? Can you maybe take a screenshot?

joaomoreno avatar Feb 10 '16 17:02 joaomoreno

git version 1.9.5.msysgit.1

screenshot 2016-02-10 15 12 19

Tomamais avatar Feb 10 '16 17:02 Tomamais

OK thanks. That button changes the sidebar to the Git view. What happens if you click on the Explorer button? It's the first one in that column, two buttons above the Git one. Do your files come back then?

joaomoreno avatar Feb 11 '16 07:02 joaomoreno

Or do the files really dissappear even from the Windows Explorer?

joaomoreno avatar Feb 11 '16 07:02 joaomoreno

ping @Tomamais

joaomoreno avatar Feb 16 '16 09:02 joaomoreno

Closing this. Please add more information if you have it.

joaomoreno avatar Feb 23 '16 16:02 joaomoreno

Hi. It didn't happen anymore. However, I haven't take the risk to lose my files again ;)

Tomamais avatar Mar 18 '16 19:03 Tomamais