Never use git push –force. Seriously, don’t use it. You should always use –force-with-lease instead. We’ll look at the problem with –force and how –force-with-lease addresses the issue.
The interactive rebase feature of Git is one of my favorites. I love being able to squash multiple commits into one commit or re-order my commits for clarity. My one complaint is the Git interactive rebase commit order is wrong (at least for the way my brain works).
I setup a site for WordPress Core development with Local by Flywheel and documented the steps. If you’re trying to do the same, this might be helpful.
When I started attending WordPress conferences, I found it challenging to connect with people. Unofficial WordCamp Breakfasts have been a great way to start my day and meet people in small groups.
On Tuesday October 9, 2018 my G Suite Catch-All Email Address stopped working. Fortunately, I noticed rather quickly and found the best way to enable it again was to “turn it off, and back on again”. I’ve made notes about exactly how I did that in case others (or future me), finds it necessary.
I would have told you I was against Daylight Saving Time but thanks to some insightful questions from my boys, I looked more closely at DST and how it impacts my life and now I’m a big fan.
Images that appear wider than the text around them are a cool design technique. I do a lot of work with Bootstrap and unfortunately, I’ve found that getting this to work usually ends up with markup that leaves me unsatisfied – at least until now. Using this technique, we can get a full width image without first closing the container element.
When I’m ordering food (e.g. french fries), I often find myself doing the math. For 30% more money, I can double the amount of fries I get (i.e. 100% more fries). Clearly, this significantly reduces my cost per fry, which results in me buying the larger fry. However the problem is the cost per fry […]
When it comes to adding social sharing buttons (e.g. “Share on Facebook”), I’m a big fan of Scriptless Social Sharing by Robin Cornett. The one thing I like to do when using it is add UTM parameters to the links that are shared. Here is the snippet I use to add UTM parameters to my URLs that are being shared.
At some point when pushing your code to a remote server (e.g. GitHub, Bitbucket, GitLab) you’re going to see an error that says, “failed to push some refs” and “Updates were rejected because the tip of your current branch is behind its remote counterpart”. This occurs when someone else pushes code to the remote server that you don’t have. Don’t panic, we can fix this.