The situation is this; we have a dev server with our project on there. I have the same project locally. There is no repository for this project yet. The files are equal, or so we hope. I git init
the server files using SSH, git remote add
, git add .
the files, git commit -m
and git push -u origin master
. Again, on the sever.
Now, I don't want to git clone this entire repository because I already have the files locally. Is there a clean way I can git init
somehow within my local files so that I don't have to git clone
the entire project AND is there a way to nicely handle any possible differences within the local files compared to the now pushed server files.
The attempts thusfar make git not understand that the local files are the same as the server files (in the now online repo) and says the entire files are overwritten.
Any help is appreciated.