开发者

Set up a github repository for an existing LAMP set up

开发者 https://www.devze.com 2023-01-13 13:04 出处:网络
I have a webserver setup using the standard linux, apache, mysql, php config and I currently 开发者_StackOverflow社区don\'t have a way of doing revision control - I just backup the whole thing every n

I have a webserver setup using the standard linux, apache, mysql, php config and I currently 开发者_StackOverflow社区don't have a way of doing revision control - I just backup the whole thing every now and then. I'd like to set up a github repository for just the php and html files - basically everything in public_html. Not really sure where to get started or how to approach it... I guess I could just set up a git repository in the public_html folder itself but that doesn't seem ideal...


Set up a Git repository one level above public_html ( git init; git commit -a ). Simple and easy (Git only creates one folder wherever you create it); you don't need to use Github (which is a publicly accessible Git repository).

0

精彩评论

暂无评论...
验证码 换一张
取 消