I have recently tried using Bitbucket for the first time. I was hired onto a project which up until now has had no version control. This made me nervous so I convinced my boss to let me upload it. My problem is this: Instead of just adding the folder in which I initialized my git repo, Bitbucket seems to be adding the parent directory and all the files in it. My project structure is like this:
User/Documents/Work/CompanyName/Project
I ran git init in Project but when I pushed to the remote, it seems to have pushed all the files in CompanyName as well. I have tried deleting both the repo and my local folder and doing it over again but I always end up with the same problem. Is this normal?? And is there anything I can do to stop it from happening again, other than moving all my files?
Edit: Okay something weirder than I thought is going on, because I deleted the existing Project directory and made a new one:
User/Documents/Work/Project
But when I pushed to Bitbucket it insisted that project is still in CompanyName/Project, even though that directory doesn't exist anymore. Think there's something wrong with my git, going to try clearing it out.