I work on a project and I have a problem on my mac. After merging my branch into the main branch by the supervisor I pulled the git project with
§ git pull
After that I did
§ git status
and I recognized that there is a new file named ".DS_Store"
As I read on the internet to delete this file I used this command:
§ find . name '.DS_Store' -type f -delete
but unfortunately, all files in my git directory are deleted !!!!
if I type
§ ls -a
I got only the ".git" file!
Now, if I type
§ git status
I got a list of random files from random locations on my computer as Change to be committed and another list as Change not staged for commit and a list as Untracked files
Please help I have to get rid of this problem!
As you have pulled your git repo from the server, then you should have actual repository on the server. So just delete your current local repository, and pull it again from remote server.