Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

Saving a file in VSCode deletes all the tracked files in the git repo

$
0
0

I have a git repository folder opened in VSCode. After hitting cmd+s to save a file I'm currently working on, this action often deletes all of the tracked files in the repository and adds them to be commited state. I always have to do hard reset of the repo to revert the changes which is not the best option especially in situations when I had several files changed.

I have no idea what the problem may be. I'm working on a mac, so I've been looking for similar issues with iCloud but I don't really know whether it is caused by iCloud, VSCode, git, or anything else in my system.

I tried to block the iCloud syncing by putting a .nosync file to the directory but that didn't help.

Has anyone encountered similar issues? DO you have some ideas where should I look to find our more about it?


Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>