I wanted to change my gitignore to ignore some of my files and I did as this Question said.Now when I was through with these steps I saw a long list of deleted files. At the moment, I committed the code but I am afraid that this will delete all the files.I want to completely revert the commit before I push the code.
So my questions are:
- If I push the code with the lasted change that I made. Will it delete the files in the main repo.(Intrestingly files are there in my machine.they are not deleted. Am I just being a chicken!!)
- How do I revert the latest commit that I just did, not just edit that log and stuffs but ignore the commit totally.