git config --local user.email "tandilashvilivaleri@gmail.com"
After the command execution, In local config
file located at .git/config
will be added the following[user]
email = tandilashvilivaleri@gmail.com
git config
defaults to --local
git merge --abort
vim test.txt
git diff --staged
The alternative command is:git diff --cached
git diff HEAD
git bisect good d5b370ec
git bisect bad urhsn47f
If we don't specify the known bad commit it will assume the last commitgit bisect bad
git bisect reset
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
install
command reads the composer.json
file from the current directory, resolves the dependencies, and installs them into vendor
composer install / composer i
If composer.lock
file exists, installs exactly what's specified in this file
Otherwise
1. Reads composer.json
file to look out what dependencies needs to be installed
2. Writes the composer.lock with the information of the project (installed dependencies)