How to Delete Hidden Files on Mac
Go to the directory – find . -name ‘*.DS_Store’ -type f -delete or, sudo find / -name .DS_Store -delete; To remove .git file – rm -rf .git
Go to the directory – find . -name ‘*.DS_Store’ -type f -delete or, sudo find / -name .DS_Store -delete; To remove .git file – rm -rf .git
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 https://shamimmia.com/how-to-add-ssh-key-to-gitlab/ and write the command below – Press Enter (to make a …
It’s very convenient to use an alias instead of full command. So, let’s see how we can make some aliases for git command – To make an alias, open the terminal and write the command below – Write some aliases – alias gs=”git status”alias ga=”git add”alias gm=”git commit -m”alias bci=”brew cask install” Colse and save …
To see the var_dump output with decoration see below – camsporny
Suppose we have created a dev branch from the master branch and then the dev branch has got some new commits. So, now we want to keep only the dev branch’s codes in master branch except all the old codes from the master. Let see how we can do that – Make sure that your …
How to Replace Master Branch with Another Branch? Read More »
1. Add the code in the Notice Class like Below – /** * Set transient only when the plugin is activated. * * @since 3.0.2 * @return void */ public static function add_the_transient() { /* Create transient data */ set_transient( ‘prefix-activation-notice’, true, 5 ); } /** * Admin Notice on Activation. * * @since 3.0.2 …
Goto to Project directory through the command: cd drag&drop/your/project/folder/here Initialize git: git init Make staging: git add . Commit : git commit -m “your message”
Installation The easiest way to get started with PHP_CodeSniffer is to download the Phar files for each of the commands: # Download using curl curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar # Or download using wget wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar wget https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar # Then test the downloaded PHARs php phpcs.phar -h php phpcbf.phar -h Composer
Go to the directory you want to initiate Git and then follow the commands: Initiate the git: git init Remove Git if you have initiated in a wrong place ( Be aware if there is another git in the subdirectory): rm -rf .git To add all the files(including subdirectory) to the staging step: git add . …