First off, I must mention... I am a complete newbie to Git, and how to use it. So bare with my lack of understanding here.
So, recently we had a 3rd party developer who was making a whole bunch of customizations on our soon to be live website, basically disappear from us. They had been using Git. However, just before they went offline, they transferred the Git Repo to me. Until that time, I had never used Git. Due to time constraints, I took it upon myself to complete most of the final changes needed on our website, directly on the server taking actual backups along the way. At one point, I tried to sync the server back to master, but I got denied because I could potentially over-right some files. I tried reading some thread, and sadly, I ended up running a hard reset on my Git. I tried a restore, but that doesn't seem to have reset my git situation.
Now, I want to take ALL the changes that have been completed on the SERVER, and start a new Git master Repo. I'm ok, with wiping any branches that previously existed, but I have no idea how to link the server to a new Git repo (that I just created in bitbucket), and push all of the required content to the new repo. I'm afraid of getting these sequences wrong, as I don't want to have to "start over" (albeit, I have a full magento 2 backup of my server, taken an hour or so ago).
The repo's are being hosted on Bitbucket if that makes any difference.
I do have a local install of Sourcetree, but I have no idea how to really use it properly.
As for the old repo, I won't delete it, and I have a copy of the master/origin repo in my SourceTree (that I'll likely zip and then remove completely once this is done).
Once, I have the master updated, I'll want to deploy this to another backup/dev server, that was again previously sync'd to the old git.
any and all help is appreciated.