• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (deprecated)
You are here: Home / Archives for Computing

Computing

Never write “thank you” in slack

Last updated on October 22, 2024 by Sal Ferrarello

While I would never suggest someone skip a “thank you”, I do recommend that you not type these words in slack.

Filed Under: Computing, Recommendations Tagged With: slack

Git Alias Tab Completion Not Working

Last updated on August 26, 2024 by Sal Ferrarello

After setting up new machine I noticed my Git alias tab completion had stopped working. I created this blog post to document how I tracked down this issue and resolved it.

Filed Under: Computing, Dev Tips Tagged With: Git, git alias, zsh

Why is my file ignored by Git?

Last updated on August 11, 2024 by Sal Ferrarello

Why is my file ignored by Git? Somewhere something is telling Git to ignore your file… but where? Is it in a .gitignore file in your current directory, is it in a .gitignore file in a parent directory, or is it in your global Git ignore file? There are many places it could be. The good news is we can ask Git why it is ignoring the file.

Filed Under: Computing, Dev Tips, Solution Tagged With: Git, gitignore

Pure Functions – The Secret to Writing Easily Testable Code

Last updated on June 1, 2024 by Sal Ferrarello

Unit tests are a wonderful tool for programmers. They allow you to ensure an individual part of your code base performs exactly the way you intend. Unit tests are ideal for testing pure functions and therefore it is beneficial to write pure functions.

Filed Under: Computing, Dev Tips, Programming Tagged With: unit-test

Replace Local Git Branch with Branch on GitHub

Last updated on March 30, 2024 by Sal Ferrarello

There are times when I want to dispose of my local branch and replace it with the version on GitHub (the upstream version). For example, when I’m reviewing a teammate’s pull request and they rewrite history (e.g. perform a rebase or amend a commit), I don’t have any work on that branch and I only want their updated version.

Filed Under: Computing, Dev Tips, Programming, Solution Tagged With: Git, git alias

Is Git Branch Up to Date

Last updated on February 23, 2024 by Sal Ferrarello

I often want to determine if my current Git branch is up to date with some other branch. One specific scenario is when I want to check if my current “feat/” branch is up to date with “main” (i.e. no new commits have been introduced in “main” that aren’t in “feat/”).

Filed Under: Computing, Dev Tips, Programming, Solution Tagged With: Git, git alias

Alfred Paste Without Clipboard

Last updated on February 9, 2024 by Sal Ferrarello

One of my frustrations with the Alfred App is when I create a custom workflow to paste a string into the current application the old clipboard value is overridden with the new string. What I want is to paste the string in the currently active app, without replacing the content in the clipboard.

Filed Under: Computing, Dev Tips, Solution Tagged With: Alfred

Convert Markdown to Plaintext

Last updated on January 9, 2024 by Sal Ferrarello

I recently had to convert some markdown into plaintext and rather than use an online tool I wanted to do it locally. This is the solution I found.

Filed Under: Computing, Dev Tips, Solution Tagged With: command line, Markdown

Use a Different Editor for Git Interactive Rebase

Last updated on December 9, 2023 by Sal Ferrarello

I’m a big proponent of changing your Git editor, so whenever Git opens an editor, it is your editor of choice. In Git version 2.40, released in 2023, an additional configuration value was added “sequence.editor” to define a different editor specifically for Git Interactive Rebase (not any other time).

Filed Under: Computing, Dev Tips Tagged With: Git, gitconfig

Git Alias Can Not Change Directory

Last updated on December 1, 2023 by Sal Ferrarello

I wanted to add a Git alias that does a “git clone” and then “cd” to change into the new directory. However, while the “git clone” worked fine, the directory change did not. It turns out you can NOT change directories from within a Git alias.

Filed Under: Computing, Dev Tips Tagged With: command line, Git, git alias, zsh

  • «Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Interim pages omitted …
  • Page 14
  • Next Page»

Copyright © 2026 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in