banner



How To Upload Large Laravel Project To Git

Tutorial : How to Upload Laravel Project to Git (BitBucket)

Upload Laravel Project to Git

And then yous are now ready with your Laravel Awarding and you are looking forward to upload laravel project to git (bitbucket) to share it with your teammates or clients.

This article will explain y'all how you tin convert your existing project to a git project and then upload laravel projection to git (remote) repository (Bitbucket for this article)

Before we continue make sure yous have a Laravel Project set and besides git install on your system. Brand sure the git command works on your concluding or command prompt.

Let's continue with the steps.

Livewire Component Library

Convert your Project to a Git Project

Open your final and navigate to the project root directory and run the git init control.

                git init              
git-init-laravel-project
Git init Laravel project

Git Add together and Commit All Files

With the git init command we have successfully converted our project into a local git projection. Although we have non yet added a git remote to our project.

As a 2nd step lets go ahead and add together and commit all the files to our local git repository.

Run the git add and git commit command on the projection root.

                git add .  git commit -m "First Commit"              

Thegit add command adds a change in the working directory to the staging area. It tells Git that you want to include updates to a particular file in the next commit.

Thegit commit command commits the staged snapshot to the project history. Committed snapshots can exist idea of every bit "rubber" versions of a projection—Git volition never change them unless you explicitly enquire information technology to.

Git add and Git commit on Laravel project

Create a New BitBucket Repository

We are now ready to push our changes to a remote repository. But before that nosotros have to create a repository where nosotros can push our changes.

Login to Bitbucket if you already have an account or SignUp for a new account. On the left hand menu , Click on the+symbol to get the option of Creating a New Repository.

Create Bitbucket empty Repo for Laravel

Enter a suitable projection name and click on Create Repository. A bare repository will be created and you will exist redirected to the overview folio of the repo.

At present we can go ahead and make this repo our remote repo for the laravel project.

Add Remote Repo and Push button Changes

To add the repository you merely created as the remote repo for your local laravel projection. Run the following command on your project root in final.

                git remote add origin https://<repo_owner>@bitbucket.org/<accountname>/<reponame>.git              

Replace the repo_owner and accountname in the URL accordingly.

git-laravel-remote-add
git remote add laravel

Now we tin can go ahead and push button the changes to remote repository.

                git push -u origin master                              
git-laravel-push-bitbucket
Git push Laravel projection

If you lot see at source in your bitbucket repository. Yous should come across your Laravel directory structure forth with the files.

That'south all is required to upload laravel projection to Git (Bitbucket)

Amazon Shopping

Source: https://5balloons.info/upload-laravel-project-git-bitbucket/

Posted by: lopezproffecanded.blogspot.com

0 Response to "How To Upload Large Laravel Project To Git"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel