I have been working on a project using GitHub. I have been working in a local repository (on my desktop, a mac), using the command line to commit changes, pull, push, etc. I had been experimenting with some code in the local copy of my repository for a few days and had not committed anything for a while because I had moved some files to and from different folders in order to test some things. I was finally ready to try to commit all of my changes, so I created a new branch from the terminal. I then switched BACK to my master branch from that branch, and poof my local copy of the repository became the master that shows on the GitHub website (origin, I believe it is called).
DISCLAIMER: this is my first time using GitHub. I guess my problem is I failed to realize how synced up a local copy of a repository is to the cloud. I had modified my local repository quite a bit, moving around files as I mentioned above and creating a Python virtual environment for certain modules. I had assumed that all of these changes were safe on my computer until I pushed them to GitHub. Anyways, I lost a lot of work I had done and really would appreciate anybody who can help me get it back.