Git: search commits by author
To search commits by the author you can use the following command: where Taras Shkodenko example author name. To get the list of all authors in a current Git repository use the useful command below:
web development and system administration of Linux
To search commits by the author you can use the following command: where Taras Shkodenko example author name. To get the list of all authors in a current Git repository use the useful command below:
Today I’ve complete PHP Symfony Developer Certification on ITVDN Platform.
Git has a useful feature. You can stash not committed changes and then re-apply them. It helps you to restore the working directory and the index, to a clean working directory as it was before your not commited changes. To stash your changes run a command below: To apply (unstash) your changes run a command … Continue reading Git: how to stash / unstash not commited changes
To copy file from you host computer to a container use command docker cp Replace ${CONTAINER_ID} with ID of the container. You can get container name using command: Docker cp documentation.
Example of a virtual host for web server Apache version 2.4 config to run a development copy of WordPress CMS:
To list installed composer libraries use command below:
You can use ?: ternary operator in PHP then you need not empty value. Set value to a $action variable from $_POST[‘action’] parameter if it is not empty or use string default instead. It is shown in the example code below: For more information see PHP documentation page for Ternary Operator. In PHP 5.3, a … Continue reading PHP ?: ternary operator the Elvis operator
Then I’ve developed MySQL backup script I’ve faced an error: which was fixed by adding parameter to mysqldump command. Also, if you dump InnoDB tables consider using the parameter. As it is described in MySQL 5.7 documentation page.
To update WordPress CMS core, plugin and theme translations the following commands can be used:
How to Install PHP 7.4 on Ubuntu. All packages should be installed as a root administrator user. Update Ubuntu Server Packages Before we install anything new on a server, you should update your server packages: # apt-get update && apt-get upgrade Install PHP 7.4 Next, to install PHP 7.4 on Ubuntu 20.04, just run the … Continue reading Install multiple php versions on Ubuntu server