如何克隆git PHP脚本 [英] How to I clone a git PHP script

查看:116
本文介绍了如何克隆git PHP脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是php和github的新手,我想克隆这个项目 GitHub - RomaniukVadim / confessions_script:Confessions PHP Script是匿名社交网络。人们可以匿名地发现他们最黑暗和最深刻的秘密。脚本正在使用BootStrap 4并且它具有响应性。 [ ^ ],但是不知道如何设置数据库,因为没有给定的数据库上传,任何帮助都意味着很多!



我尝试了什么:



我尝试了一切,当你克隆一个git并输入localhost / conffesions_script /时,它会引导你进入install.php页面,它会要求你放置数据库主机,用户,密码和主机,我在phpmyadmin中创建并输入,但它显示错误,那么安装此脚本的正确方法是什么?

Im new to php and github, I want to clone this project GitHub - RomaniukVadim/confessions_script: Confessions PHP Script is Anonymous Social network. People can fess up their darkest and deepest secrets anonymously. Script is using BootStrap 4 and it's responsive.[^] , but dont know how to set up datebase, since theres no given database to upload, any help will mean a lot!

What I have tried:

I tried everything, when you clone a git and type localhost/conffesions_script/, it leads you to install.php page, where it asks you to put DB Host, User, Password and Host, which I created in phpmyadmin and typed in, but it shows errors, so whats the right way to install this script?

推荐答案

First将存储库复制到本地计算机。为此,请单击克隆或下载按钮,然后复制该链接,然后运行以下命令。



First copy the repository to your local machine. To do so, click the "clone or download" button, and copy the link and then run the following command.

#this command will copy the master branch
git clone _copied_url

# this command will copy a targeted branch
git clone _copied_url -b target-branch





在安装说明区,它清楚地说明了要做什么。那样做。



In the Installation instruction area, it clearly says what to do. Do that.


这篇关于如何克隆git PHP脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆