Docker: How to use nano

MacBook Pro affichant un éditeur de code

To use nano in Docker, you have to update apt-get and install nano. When trying to open a file you may face the error Error opening terminal: unknown. No worries, just export the TERM=xterm variable apt-get update apt-get install nano export TERM-xterm

Git how to check only a folder – Sparse checkout

MacBook Pro affichant un éditeur de code

Since git 1.7.0 it is possible to use a technique called sparse checkout The steps for cloning are: Mkdir<repo></repo> Cd<repo></repo> git init git remote add -f origin<url></url> This creates an empty folder, runs the fetches but without checking out the files. Then you have to configure git to use sparseCheckout. git config core.sparseCheckout true Then … Read more

Install WordPress and plugins with Composer

MacBook avec code sur un bureau

Installing WordPress via Composer has often been difficult, fortunately there is now a solution! WordPress On GitHub there is a project that is updated every 15 minutes with the latest version of WordPress. It is also the most used. https://github.com/johnpbloch/wordpress In the composer.json just indicate the project name. In this example, we can also indicate … Read more