I'm having a rather annoying issue that is likely a simple problem to fix, though I cannot find any solution on google to it.
I'm currently working on an assignment that requires me to switch between branches that are "checkpoint" based work and "assignment" based. Basically what's happening is every time I push something to Github, the local files in the folder I'm working on seem to...disappear and I don't know why. I have to recreate the files and copy/paste code into it every time and it is driving me insane. Here is what I have been doing at the end of either completing a checkpoint or assignment;
git add .
git commit -m ""
git push origin "checkpoint name"
git checkout master
And after that's done, the files in my work folder are no longer in my local for some reason and I can't figure this out.