---
title: "git 6.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each git release removed, renamed or changed: 52 breaking changes in 7 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/git
last_updated: 2026-12-04
---

# git breaking changes

git 6.0.0 (October 28, 2026) is its newest release with breaking changes, 38 of them. The first: git 6.0.0 requires Ruby 3.3.0 or later. Every breaking API change we have recorded in git on RubyGems: 52 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.0.0`, released October 28, 2026. [Source repository](https://github.com/ruby-git/ruby-git)

Its 6.0.0 release requires Ruby 3.3.0 or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [5.0.0](#v-5-0-0) to [6.0.0](#v-6-0-0): 38 breaking changes in 1 version.
- From [3.0.0](#v-3-0-0) to [6.0.0](#v-6-0-0): 46 breaking changes in 3 versions.

## git 6.0.0 breaking changes

git 6.0.0, released October 28, 2026: 38 breaking changes.

- **Removed**  

Ruby 3.3.0 or later is required; applications on Ruby 3.2 must upgrade Ruby or stay on v5.x. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Author`  

Git::Author is removed; referencing it raises NameError. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Base`  

The Git::Base constant no longer exists, so is_a?(Git::Base) checks raise NameError. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.binary_version`  

Git.binary_version no longer exists; use Git.git_version. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Branch`  

Git::Branch and Git::Branches are removed; use Git::Repository#branch_list. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.clone`  

Git.clone raises ArgumentError when given :path, :recursive or :remote; use :chdir, :recurse_submodules and :origin. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.CommandLineResult`  

Git::CommandLineResult no longer exists; use Git::CommandLine::Result. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Log.each`  

Git::Log no longer includes Enumerable or defines each, size, to_s, first, last or \[\]; call execute. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Object.Tag`  

Git::Object::Tag no longer exists; use tag_list and tag_create on Git::Repository. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Remote`  

Git::Remote is removed and referencing it raises NameError; use Git::Repository#remote_list. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Repository.add_remote`  

Git::Repository no longer defines add_remote, remove_remote, set_remote_url, add_tag or delete_tag. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Repository.config`  

Git::Repository#config and related config methods no longer exist; use config_get, config_set and config_list. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Repository.diff_name_status`  

Git::Repository no longer defines diff_name_status; call diff_path_status instead. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Repository.lib`  

Git::Repository#lib no longer exists; call the facade method directly on the repository. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Repository.object_contents`  

Git::Repository no longer defines object_contents; call cat_file_contents instead. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Repository.object_size`  

Git::Repository no longer defines object_size; call cat_file_size instead. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Repository.object_type`  

Git::Repository no longer defines object_type; call cat_file_type instead. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Repository.remotes`  

Git::Repository no longer defines remotes; call remote_list or remote_names. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Repository.reset_hard`  

Git::Repository no longer defines empty?, reset_hard, conflicts, branches_all and related branch predicates. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Repository.revparse`  

Git::Repository no longer defines revparse; call rev_parse instead. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Stash`  

Git::Stash, Git::Stashes, stashes_all and stash_save are removed. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Status`  

Git::Status and Git::Status::StatusFile are removed; use Git::Repository#status_info. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Removed** `Git.Worktree`  

Git::Worktree, Git::Worktrees and the worktree listing methods are removed. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed**  

A relative :repository or :index option passed to a factory is expanded against the process working directory. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed** `Git.Deprecation.deprecation_horizon`  

deprecation_horizon now reads as a phrase rather than a version; code that parses it as a version raises. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed** `Git.export`  

Git.export(url, dir, remote: name) raises ArgumentError instead of ignoring the option; delete the option. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed** `Git.init`  

Git.init raises ArgumentError when it receives an unknown option key. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed** `Git.open`  

Git.open and Git.bare raise ArgumentError when they receive an unknown option key. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed** `Git.Repository.archive`  

Git::Repository#archive raises Git::Error instead of a Zlib::Error subclass when gzip compression fails. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed** `Git.Repository.clean`  

clean no longer accepts :ff or :force_force, and passing them raises ArgumentError; use force: 2. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed** `Git.Repository.set_working`  

set_working and set_index no longer take a positional check argument; use must_exist: instead. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed** `Git.Repository.stash_store`  

stash_store raises Git::UnexpectedResultError instead of returning nil when the stored commit is missing. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed** `Git.Repository.tag_create`  

tag_create raises Git::UnexpectedResultError instead of returning nil when the new tag is missing from the tag list. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed** `Git.Repository.with_index`  

The with\_\* helpers yield a separate Git::Repository bound to the temporary index or tree; use the block parameter instead of the outer repository. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Behavior changed** `Git.Repository.with_working`  

with_index, with_temp_index, with_working and with_temp_working raise ArgumentError without a block parameter; declare one and use it. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Configuration changed**  

Users on older git, including Ubuntu 22.04 defaults, must install a newer git or stay on v5.x. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Signature changed** `Git.Repository.stash_list`  

stash_list returns Array\<Git::StashInfo>, newest first, instead of a String. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)
- **Signature changed** `Git.Repository.worktree_add`  

worktree_add returns a Git::WorktreeInfo instead of the git worktree add output String. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v6.0.0)

## git 5.0.0 breaking changes

git 5.0.0, released July 28, 2026: 7 breaking changes.

- **Removed** `Git.Base`  

Git::Base is gone. Use Git::Repository for repo-bound operations and the Git module methods for opening, cloning and initializing repositories. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v5.0.0)
- **Removed** `Git.Lib`  

Git::Lib is gone. Internal command execution now goes through Git::Commands::\* and Git::ExecutionContext, and public calls should use Git::Repository. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v5.0.0)
- **Behavior changed** `flag_option`  

Passing false to a negatable flag_option no longer emits --no-foo and silently emits nothing. Register a no\_{flag} companion key and pass no_foo: true instead. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v5.0.0)
- **Behavior changed** `Git.bare`  

Code that depends on the Git::Base return type must be updated to use Git::Repository. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v5.0.0)
- **Behavior changed** `Git.clone`  

Code that depends on the Git::Base return type must be updated to use Git::Repository. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v5.0.0)
- **Behavior changed** `Git.init`  

Code that depends on the Git::Base return type must be updated to use Git::Repository. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v5.0.0)
- **Behavior changed** `Git.open`  

Code that depends on the Git::Base return type must be updated to use Git::Repository. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v5.0.0)

## git 4.0.0 breaking changes

git 4.0.0, released July 2, 2025: 1 breaking change.

- **Removed**  

The gem now requires Ruby 3.2 or greater. Upgrade Ruby to 3.2+ before updating. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v4.0.0)

## git 3.0.0 breaking changes

git 3.0.0, released February 27, 2025: 2 breaking changes.

- **Removed**  

The gem no longer supports Ruby 3.0, so code running on Ruby 3.0 must move to a supported Ruby version. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v3.0.0)
- **Behavior changed**  

String literals in the gem are now frozen, so code that mutates strings returned by the gem may raise errors and must copy them first. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v3.0.0)

## git 2.0.0.pre4 breaking changes

git 2.0.0.pre4, released May 11, 2024: 1 breaking change.

- **Behavior changed**  

Errors raised by the gem were refactored, so code that rescues specific errors may need to be checked. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v2.0.0.pre4)

## git 2.0.0.pre2 breaking changes

git 2.0.0.pre2, released May 11, 2024: 1 breaking change.

- **Behavior changed**  

The error classes raised by the gem were restructured, so code that rescues specific error classes may need to be updated. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v2.0.0.pre2)

## Older versions

1 older version.

### git 2.0.0-pre.1 breaking changes

git 2.0.0-pre.1, released May 11, 2024: 2 breaking changes.

- **Behavior changed**  

The gem now requires a newer Ruby and Git than before. Upgrade Ruby and Git before moving to this release. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v2.0.0-pre.1)
- **Behavior changed**  

The gem now runs the git command line differently, so code that depended on the previous subprocess behavior should be checked. [github.com](https://github.com/ruby-git/ruby-git/releases/tag/v2.0.0-pre.1)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
