Git and libgit2

Extra Git and Git LFS Commands

Published 2025-01-24. Last modified 2025-10-23.
Time to read: 3 minutes.

This page is part of the git collection.

I have published 8 articles about the Git large file system (LFS). They are meant to be read in order.

  1. Git Large File System Overview
  2. Extra Git and Git LFS Commands
  3. Git LFS Client Installation
  4. Git LFS Server URLs
  5. Git-ls-files, Wildmatch Patterns and Permutation Scripts
  6. Git LFS Tracking, Migration and Un-Migration
  7. Git LFS Client Configuration & Commands
  8. Git LFS SSH Authentication
  9. Working With Git LFS
  10. Evaluation Procedure For Git LFS Servers
  11. Git LFS server tests:
    1. Null Git LFS Server

6 articles are still in process.

Instructions for typing along are given for Ubuntu and WSL/Ubuntu. If you have a Mac, the compiled Go programs provided on GitHub should install easily, and most of the textual information should be helpful.

Commands for Testing Git LFS Implementations

The git-lfs-test Go program provides a comprehensive client-server Git LFS testing framework.

The following commands were expressly written for this miniseries on Git LFS. They are designed to work together when testing Git LFS implementations.

Installation

Install the Go program like this:

Shell
$ go install github.com/mslinn/git-lfs-test@latest

About the Prompts

Throughout this series of articles, command-line sequences showing at least two computers are often displayed. For example, the following was typed on my desktop computer called bear from a directory called /ab/cd/ef/:

Bear
mslinn@bear ef $ pwd
/ab/cd/ef 

The bash prompt highlighted above presented a lot of information. So that readers can easily keep track of what is happening where, the following was the definition for the bash prompt:

~/.bashrc fragment
export PS1='\u@\h \W \$ '

Defining PS1 in this way displays the following:

  1. User ID of the person logged in to the terminal session (I am mslinn everywhere).
  2. @ delimiter.
  3. Network node name, which is often equivalent to the name of the computer. Pay attention to that portion of the prompt because that will tell you the name of the computer on which the command was executed. I mostly used bear, my desktop computer running Windows 10 and WSL2, and gojira, my Ubuntu server.
  4. Space character
  5. Current directory name. For example, if the full path of the current directory is /ab/cd/ef/, then only ef would be displayed.
  6. Space character.
  7. $ dollar sign.
  8. Space character.

I have published 8 articles about the Git large file system (LFS). They are meant to be read in order.

  1. Git Large File System Overview
  2. Extra Git and Git LFS Commands
  3. Git LFS Client Installation
  4. Git LFS Server URLs
  5. Git-ls-files, Wildmatch Patterns and Permutation Scripts
  6. Git LFS Tracking, Migration and Un-Migration
  7. Git LFS Client Configuration & Commands
  8. Git LFS SSH Authentication
  9. Working With Git LFS
  10. Evaluation Procedure For Git LFS Servers
  11. Git LFS server tests:
    1. Null Git LFS Server

6 articles are still in process.

Instructions for typing along are given for Ubuntu and WSL/Ubuntu. If you have a Mac, the compiled Go programs provided on GitHub should install easily, and most of the textual information should be helpful.

* indicates a required field.

Please select the following to receive Mike Slinn’s newsletter:

You can unsubscribe at any time by clicking the link in the footer of emails.

Mike Slinn uses Mailchimp as his marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp’s privacy practices.