VS2013 git - Project marked as pending delete

Viewed 6092

I recently wanted to try VS2013 and the Git tool for SC. Everything worked great until I did something, but dont know what... I created a nodejs application and pushed it to github. However, the "main" script was not directly into the root repo directory, so I manually created another repo to be able to push it to heroku. Well, after that, another branch appeared in team explorer, and my master branch was told that all files were in a pending delete status. I sync the repo and it was well pushed into github however I must do it manually because I got an error in VS. Now that the repo is pushed, I dont have any error anymore when Sync, but there are still those pending delete status on every files.

Furthermore, because of that, I cant do any change in a file and push it with VS, I must push manually.

Any idea ? (I know the issue is really not clear, but I do my best ;))

6 Answers

Simply right-clicking the problematic file/project in the VS solution explorer and selecting Undo did the trick for me.

Had a similar problem, my controller files were marked "Pending Delete" and I was wondering if anyone else had deleted them. So I went to the Controllers folder in Windows Explorer, right clicked, and selected "Undo Move". Somehow I must have moved these files accidentally. So if you see any pending deletes, check if your files were accidentally moved (or deleted) first.

Actually some file have been deleted or some changes have been made. So go to git changes & in the changes section you may find those respective files. Right click and undo changes. This will restore back the files and no "pending delete" option may occur! Worked for me , thanks.

I had the same issue and just did a git reset!

git reset

P.S: The above command can undo any changes that you've made in the repo. Please ensure you understand the consequences before running the same.

Related