local wp-admin login page redirects to live production server instead of local backend

I just successfully connected my first locally-hosted website to a copy of its production database, but when I try to log in to the backend, it redirects me to my production environment. Why? The solution is to fire up myPhpAdmin, open the wp_options tables (or yourWPprefix_options table) and change the entries in the first two …

I’m developing a WordPress site. What should I include in .gitignore?

In the git repository for your website, there’s a .gitignore file. It lists what files you don’t want to track as part of the repository. There are different things you might want to ignore: Git is for tracking code. To protect, retrieve or reset an entire website with all its content, try a backup software/protocol/system …

Adding several options for a single terminal command

Do you want to combine several options when running a command in a terminal? Just type them in right after the command itself, before the main parameters. Remember to type the hypens, too: $ grep -r -i -l –color -a mystringtolookfor * The nice thing is that you can collapse all the options together, as …