Reputation: 33
I am newbie to git system and trying to set up git system (using git-scm) between my local computer (OS: Windows) and server (server provider: hostinger.com). I don't want any middle man like github or other servers.
To test my git system, i have created a new repository, added a test file to it, committed, and pushed it to remote bare repository, all with no error. However, my test file doesn't show up on server, there is just bare repository folder on the server. I have done all git commands on same bash to show you results:
The only thing that is not on the picture is, I uploaded a simple "new 1.txt" file to d:/wamp64/www/test/ location manually after using "git init" command. As a result, there is just "wp.git" folder on the server but not "new 1.txt" file. What am I missing?
Upvotes: 0
Views: 324
Reputation: 33
Seems like I had the wrong ideas about git system. For the newbies trying to do what i was trying:
ssh [email protected] -p 65002 "git clone /home/u266881589/domains/mezegurmanams.lt/public_html/wp.git /home/u266881589/domains/mezegurmanams.lt/public_html/test"
Adding this last command does the trick for me, however it is not what i really want. As I have learnt, Git is not appropriate for deployment or to sync files like i was trying to do. Especially for binary files like image files etc. it becomes another problem. Conclusion, using git for just development and something like "rsync" to synchronize files is a better solution
Upvotes: 1