Ken Muse
Comparing GitHub Commit Signing Options
Trying to understand the options for signing Git commits? Explore the options available for cryptographic signatures and their tradeoffs in today’s post.

Read this article

Marking Workspaces Safe with Dotfiles
There are many ways to automate the process of marking directories as “safe” to avoid the “detected dubious ownership in repository” message. Last week, I discussed how to modify the devcontainer.json. This week, let’s see an alternative using Dotfiles.

Read this article

Avoiding Dubious Ownership in Dev Containers
It’s always best to run containers with the least privileges required. Unfortunately, that may result in Git operations that fail with the message “detected dubious ownership in repository”. The trick to eliminating this is quite simple …

Read this article

Creating a .gitattributes Without Committing
Continuing our examination of ways of influencing Git’s behaviors and settings, today we look at how to utilize a global .gitattributes and how to specify file handling without modifying the repository’s .gitattributes file.

Read this article

What Is The .gitattributes File?

What Is The .gitattributes File?

You’ve seen the file, but do you understand it’s purpose? Git has the ability to customize how it handles the files you edit. Today we explore how that works.

Read this article

Creating a .gitignore Without Committing

Creating a .gitignore Without Committing

Git is a powerful tool with lots of options to simplify how you work. Today we explore how to specify files and folders to automatically ignore for all local repositories, as well as how to configure Git tracking without a local .gitignore.

Read this article

Git Line Staging & Patch Editing
Continuing with last week’s post, we’re going to explore how to take interactive staging (line staging) one step further in Git. Sometimes you need complete control over the process of selecting which lines to commit. Perhaps you need fine control over what code is being committed. Perhaps you just want to organize what’s in the commit. Today, we continue the exploration of this feature by learning how to edit what we’re staging.

Read this article

Using Git Line Staging to Commit Parts of Files
The latest preview of Visual Studio 2022 has introduced interactive staging and the ability to stage and commit a subset of a file. Today we’ll examine how you can use the Git command line to choose to commit parts of files.

Read this article

Configuring Git's Text Editor

Configuring Git's Text Editor

Several of the more powerful features of Git are only exposed from the command-line interface. However, some of these features rely on being able to invoke a text editor. In today’s post, we walk through how to associate a text editor with Git.

Read this article