How to copy-paste text in the Gitbash command line terminal? There’s a quick trick for each case: Copying from and to the terminal itself This is for when you need to paste a value or string of text from within the GitBash terminal to the next command you’re currently editing.
Category Archives: Web Development
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 …
What is wp_options?
wp_options is one of the most basic tables of any wordpress site. It contains key references about the site itself. It doesn’t include any of the normal content like posts or images. The Envatotuts website puts it quite well: The wp_options table is unique among WordPress database tables in that it doesn’t share a relationship …
How to swap a database out for another
I’m trying to use VVV, a Vagrant project dedicated to WordPress, to learn and practice developing a local website. A few days worth of looking and learning led me to understand one of the key things to transfer a database from one server setting to another. Indeed, VVV recommends setting up default websites from files …
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 …
Continue reading “I’m developing a WordPress site. What should I include in .gitignore?”
gitignore
Creating a repository for code with Git means you want to track changes that are made to that code. Git works by tracking files in the folder it’s set up in. Often, though, there’s more than just code that is included in the folders. For instance, for a website, there’s content like blog posts and …
What is Composer?
Composer (see here) is a system to organize your PHP code. With this system, you can create or maintain PHP files by referring to snippets that are stored in different places. This is called “dependency management”. Basic building blocs of PHP code can be stored in “libraries”. Libraries can be shared across projects. If they’re …
Update software
We’ve been over some of the softwares, systems, and logins that are part of a developer’s life. As everything in this world, things change (hopefully for the better). Here are quick guidelines on how to update the different softwares we use. Git for Windows This helps use the git protocol on a windows computer. In …
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 …
Continue reading “Adding several options for a single terminal command”
Exit grep because it seems to be hanging
Perhaps you’ve typed in a grep command that wasn’t well thought out. Here is how to exit grep and get your terminal to respond again. Make sure the terminal window is active and press the following keys to exit grep and cancel the current command: ctrl + c This gets you back to : and …