I have my project in visual studio code and I have published in github as well. But due to some faulty , my node modules got published as well in github. After performing rm -rf node modules
apparently the node modules also got removed from my project in vs code so i can’t committ any further updates from vs code to github. it shows error
Empty commits cannot be created
So how do i sync my project again with the one published in github? The project already has a live hyperlink and deployed through vercel and I can’t change since it has been shared with many other people.
I tried adding the origin again by git remote add origin
but it didn’t work as it shows error remote origin already exists.
user222432 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.