I am having an issue with git. I made a simple python file in a git initialized folder. Then I added it and committed it. Then I edited it, added another csv file to the folder, and committed it again.
The problem is, when I check out to the previous commit ID, the changes I made were not found to be reverted back. The csv file still exists, and the changes in python file also persists.
But when I tried to commit it again, using the same statement as I did earlier, the changes reverted.
So guys, please explain what just happened here.
I am a beginner to programming world. So, I would like to know how stuff work, not just the solutions. Hope its ok.