composer global require squizlabs/php_codesniffer composer global require wp-coding-standards/wpcs composer global require phpcompatibility/php-compatibility composer global require dealerdirect/phpcodesniffer-composer-installer phpcbf phpcs
It’s very important to add an SSH key to GitLab to work on a remote project what is hosted on GitLab. Let see how we can do that –
We working on a Mac to set up this key –
1. Go to your terminal and write the command below –
ssh-keygen -t rsa -C "[email protected]"
Press Enter (to make a file with the default name)
Type ‘y’ (to overwrite
Press Enter (to skip passphrase)
2. To see the generated key type :
Copy the key and paste it to your GitLab profile.
Now start pull / push / clone etc. commands.