I have my project on my local machine, with git versioning.
I buy server, I install git, now I want clone my local project to my server (exactly the opposite of what we do generaly).
I don't have gitlab or github here.
How can I do that? How download my local git project to my server?
EDIT: solution
2 steps:
1- apply good answer of this topic (to create a "git server" with only git files)
2- and connect to server and apply :
cd /my/true/directory/for/my/app
git clone file:///opt/git/project.git
In fact, we have to create a "server" git where to push (local to server), and where to pull (true directory on server from server)