Category : git

I have an application that ueses Laravel as backend and React as frontend The two applications are stored in separate repositories. In local enviroment I serve the Laravel application with "php artisan:serve" and the React application with "npm run start". The two applications communicates with each others through POST/GET APIs. Now I want to create ..

Read more

I’m still learning docker, and i’m trying to Dockerize a laravel project. I’m trying to execute laravel composer in docker, however git does not work: [RuntimeException] git was not found in your PATH, skipping source download Git works normal in my local machine. My Docker file: FROM php:7.4-fpm-alpine RUN docker-php-ext-install pdo pdo_mysql sockets RUN curl ..

Read more

Hi I have a conflict CONFLICT (rename/delete) in my repo.. yesterday I have deleted a migration file from master branch which is not present either any of other feature branches, but when I try to push my develop it returns the CONFLICT (rename/delete) error .. the conflict isn’t in the content.. because it is a ..

Read more

I have below command to get files and I want to exclude all .blade.php files. $(git diff –cached –name-only –diff-filter=ACM | grep ".php{0,1}$") How can I do that? I tried these ways : $(git diff –cached –name-only –diff-filter=ACM | grep –exclude="*.blade.php*"| grep ".php{0,1}$") $(git diff –cached –name-only –diff-filter=ACM | grep –exclude="*.blade.php*" ".php{0,1}$") but none of ..

Read more

I have been having this error, when I try downloading dependencies for our collaboration Laravel project from github Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated ..

Read more

I have installed PHPCS from composer.json "require-dev": { "phpstan/phpstan": "^0.12.93", "squizlabs/php_codesniffer": "^3.6" }, I am using laravel 8 so I have added below code for pre-commit file in `.git/hooks/pre-commit file #!/bin/sh # get bash colors and styles here: # http://misc.flogisoft.com/bash/tip_colors_and_formatting C_RESET=’e[0m’ C_RED=’e[31m’ C_GREEN=’e[32m’ C_YELLOW=’e[33m’ function __run() #(step, name, cmd) { local color output exitcode printf ..

Read more

In fresh new install of a laravel project, I started to install VOYAGER in my project as the following steps: composer create-project –prefer-dist laravel/laravel badrhb "6.*" composer require tcg/voyager and here I got an error as follow: …. ….. … Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 1 install, 0 ..

Read more

I try to clone a project from github in cpanel. But there is a fatal error when try to run git clone from my github repository. It show fatal: unable to open /home/username/test.website.com/reponame/.git/objects/pack/tmp_pack_HThtXE: Too many open files fatal: index-pack failed In another project when git pull show the error fatal: unable to open .git/objects/pack/tmp_pack_hfxX0U: Too ..

Read more

In ProviderRepository.php line 208: Class ‘TymonJWTAuthProvidersLaravelServiceProvider’ not found Script @php artisan package:discover –ansi handling the post-autoload-dump event returned with error code 1 PS D:klizosnewpiedparker_backendnewpiedparker.com> php artisan clear In ProviderRepository.php line 208: Class ‘TymonJWTAuthProvidersLaravelServiceProvider’ not found PS D:klizosnewpiedparker_backendnewpiedparker.com> composer require illuminate/auth Using version ^8.49 for illuminate/auth ./composer.json has been updated Running composer update illuminate/auth Loading composer ..

Read more

I am try to checkout git checkout -f staging this way from widows PowerShell (my operating system is windows 10 ) git checkout -f staging git checkout -q –track origin/staging fatal: cannot create directory at ‘public/C:xamppphp8htdocscaab-hccstoragelogs’: Invalid argument I can check out other branch easily from same repository but when I am going to use ..

Read more

making pull from git I got errors: $ git pull origin remote_branch Password for ‘https://[email protected]’: From https://github.com/client_name/project_name * branch remote_branch -> FETCH_HEAD error: Your local changes to the following files would be overwritten by merge: package-lock.json public/mix-manifest.json Please commit your changes or stash them before you merge. error: The following untracked working tree files would ..

Read more

I have installed git and now need to access a repository on Gogs. I have the username and password for logging in and when I try to sign in, I get this error: Access to gogs.reposityname.com was denied You don’t have authorization to view this page. HTTP ERROR 403 So what is going wrong here? ..

Read more