This guideline will show you how to set up a cloned Laravel project properly without or with minimum mistakes by using commands.
- GitHub Account
Step 1: Clone Laravel Project from GitHub
First, find your desired Laravel repository on GitHub. There is a green button labeled Clone or download at the right-hand side. Click on it and copy the link, the link also known as remote URL.
Note that the owner name should be GitHub user name. Well, in common sense project name should be repository name as well. Yeah, you know the way. And then go back to your local machine, open desired directory window. Right-click inside directory window and select Git Bash Here.
A git bash terminal will pop-up, and then you can start using git command to clone the project from GitHub remote repository.
git clone "https://github.com/<owner name>/<project name>.git"
Copy and paste the command above into your git bash terminal. Replace owner name and project name. Start executing the command, if the process goes smoothly, the output should be:
Cloning into '<project name>' ... remote: Enumerating objects: 82,done. remote: Counting objects: 100% (82/82), done. remote: Compressing objects: 100% (64/64), done. remote: Total 2002 (delta 16), reused 55 (delta 13), pack-reused 1920 Receiving objects: 100% (2002/2002), 2.87 MiB | 1.55 MiB/s, done. Resolving deltas: 100% (791/791), done. Checking out files: 100% (453/453), done.
Now in your desired directory window, there should be a newly created folder with your project name clone from GitHub.