how How to copy a local repository to remote server using git?
I’m trying to use git to deploy my local code in my remote server.
So here is what I’ve done in my local folder mywebsite/ :
Then, on my web server :
Then, on my local folder mywebsite/ :
which gave this result :
But when I log in to my web server, in the myrepo.git, I’m still having these files and folders
and I don’t retrieve the files and folders I have in my local mywebsite folder.
How could I retrieve my code in the remote myrepo.git folder ? Did I do something wrong ?
Thanks a lot for your help!
You’ve created a remote repository without a working directory (which is the purpose of the
Using this approach you can develop locally, push to remote as often as you like and then, when you are ready,