My local branches got wiped and I would like to retrieve the files I've been working on from Github. I am new to Git and am not sure how to do this. From Googling, this is what I've tried:
- Created new branch with same name:
git checkout -b some-branch - Used git pull to pull in my files, eg
git pull project-name some-branch
However, this seems to pull in a lot of other files, not associated with what I am working on.
Would anyone know how to set up my branch again and retrieve just my files?
git branch all. If so, just checkout the corresponding branch and you are all goodfatal: Not a git repository