On legacy project with 2 environments prod and dev.
We recently added git on prod and pushed all the changes in the master branch, and can now support this server better.
However I have trouble initiating the git tracking on our dev server, there code base there is a bit different and I can not just clone it fresh...
What are the proper steps to add git repository tracking, to existing code, similar to the master branch ?
I tried:
git init
git origin add remote ...
git branch --set-upstream master origin/master
But now all my local files are shown as locally deleted.
git checkout master shows conflict on all files
git pull says all is up to date