I couldn’t think of a good title for this post, but this was the problem I found myself in, whilst doing some WordPress theme development. I came to my computer this morning to continue work, and noticed that there was an “error_log” file in the “wp_admin” folder on the server. So I downloaded it, had…
Tag: git
Git aliases (updated)
Almost 2 years ago now I wrote about the Git aliases I was using. And I still use most of them, but I’ve also added a few new ones worth talking about. Backing up slightly, I’m talking about creating shortcuts to improve your workflow. For example, I like to use the short form of git status most of…
Creating Git diff gists
A few weeks ago I asked you a very important question: How pretty are your Git diff’s? Side note: I now realise that’s grammatically incorrect – shouldn’t have an apostrophe! Anyway, using pretty-diff makes them pretty darn pretty. But that’s not all that pretty-diff can do. If you haven’t already, you need to install the tool like…
Using a text editor in Git
Now that I’ve switched from Atom to VS Code I thought it was about time I spruced up my Git config, using VS Code to power the text editing features. For starters, you’ll want to globally set the code editor on the command line, like this… git config –global core.editor “code –new-window –wait” Or in the global…
How pretty are your Git diff’s?
Git is a very powerful version control tool, one that I’ve talked about a lot before. One of the great features is the “diff”, which outputs the differences between the code changes that you’ve made and the code that’s committed. Out of the box, you get something like this… This is pretty helpful, it tells you…
Finding the right Git commands
I stumbled across a great little resource the other day, the Git Command Explorer. It looks beautiful and has already been super useful. Find the right commands you need without digging through the web. Git is super useful and I don’t know how I ever managed before I found it. But the commands I use all…