Results: 1022
Creates new project called
projectname
based on
laravel/laravel
package
composer create-project laravel/laravel projectname
Shows available commands that we can execute
composer
The
remove
command removes packages from
vendor
and
composer.json
file
composer remove vendor/package
Installs the latest version of the specified package
composer require phpunit/phpunit
If we want to downgrade a package to a specific version without changing our
composer.json
we can use --with and provide a custom version
composer update --with vendor/package:2.0.1
If we want to update all packages of the specified vendor
composer update "vendor/*"
If we only want to update the specified package
composer update vendor/package
Moves
file.php
to
src
directory (if the directory does not exist, the file will be renamed to
src
)
git mv file.php src
file.php
will be moved to
src/
directory (if the destination directory does not exist, git will throw the error:
destination directory does not exist..
git mv file.php src/
After running the command, status of the file will be
renamed
, but if we did it manually, git will identify the operation as
deleted
and
new file
Stops the bisect process
git bisect reset
The bisect process needs to know which commit is our known bad commit
git bisect bad urhsn47f
If we don't specify the known bad commit it will assume the last commit
git bisect bad
Results: 1022