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
On this page
Latest version 6.0.0, released October 28, 2026. Source repository
Its 6.0.0 release requires Ruby 3.3.0 or later. Ruby end of life dates.
- From 5.0.0 to 6.0.0: 38 breaking changes in 1 version.
- From 3.0.0 to 6.0.0: 46 breaking changes in 3 versions.
git 6.0.0 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 - Removed
Git.Author
Git::Author is removed; referencing it raises NameError. github.com - Removed
Git.Base
The Git::Base constant no longer exists, so is_a?(Git::Base) checks raise NameError. github.com - Removed
Git.binary_version
Git.binary_version no longer exists; use Git.git_version. github.com - Removed
Git.Branch
Git::Branch and Git::Branches are removed; use Git::Repository#branch_list. github.com - Removed
Git.clone
Git.clone raises ArgumentError when given :path, :recursive or :remote; use :chdir, :recurse_submodules and :origin. github.com - Removed
Git.CommandLineResult
Git::CommandLineResult no longer exists; use Git::CommandLine::Result. github.com - Removed
Git.Log.each
Git::Log no longer includes Enumerable or defines each, size, to_s, first, last or []; call execute. github.com - Removed
Git.Object.Tag
Git::Object::Tag no longer exists; use tag_list and tag_create on Git::Repository. github.com - Removed
Git.Remote
Git::Remote is removed and referencing it raises NameError; use Git::Repository#remote_list. github.com - Removed
Git.Repository.add_remote
Git::Repository no longer defines add_remote, remove_remote, set_remote_url, add_tag or delete_tag. github.com - Removed
Git.Repository.config
Git::Repository#config and related config methods no longer exist; use config_get, config_set and config_list. github.com - Removed
Git.Repository.diff_name_status
Git::Repository no longer defines diff_name_status; call diff_path_status instead. github.com - Removed
Git.Repository.lib
Git::Repository#lib no longer exists; call the facade method directly on the repository. github.com - Removed
Git.Repository.object_contents
Git::Repository no longer defines object_contents; call cat_file_contents instead. github.com - Removed
Git.Repository.object_size
Git::Repository no longer defines object_size; call cat_file_size instead. github.com - Removed
Git.Repository.object_type
Git::Repository no longer defines object_type; call cat_file_type instead. github.com - Removed
Git.Repository.remotes
Git::Repository no longer defines remotes; call remote_list or remote_names. github.com - Removed
Git.Repository.reset_hard
Git::Repository no longer defines empty?, reset_hard, conflicts, branches_all and related branch predicates. github.com - Removed
Git.Repository.revparse
Git::Repository no longer defines revparse; call rev_parse instead. github.com - Removed
Git.Stash
Git::Stash, Git::Stashes, stashes_all and stash_save are removed. github.com - Removed
Git.Status
Git::Status and Git::Status::StatusFile are removed; use Git::Repository#status_info. github.com - Removed
Git.Worktree
Git::Worktree, Git::Worktrees and the worktree listing methods are removed. github.com - Behavior changed
A relative :repository or :index option passed to a factory is expanded against the process working directory. github.com - 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 - Behavior changed
Git.export
Git.export(url, dir, remote: name) raises ArgumentError instead of ignoring the option; delete the option. github.com - Behavior changed
Git.init
Git.init raises ArgumentError when it receives an unknown option key. github.com - Behavior changed
Git.open
Git.open and Git.bare raise ArgumentError when they receive an unknown option key. github.com - Behavior changed
Git.Repository.archive
Git::Repository#archive raises Git::Error instead of a Zlib::Error subclass when gzip compression fails. github.com - Behavior changed
Git.Repository.clean
clean no longer accepts :ff or :force_force, and passing them raises ArgumentError; use force: 2. github.com - Behavior changed
Git.Repository.set_working
set_working and set_index no longer take a positional check argument; use must_exist: instead. github.com - Behavior changed
Git.Repository.stash_store
stash_store raises Git::UnexpectedResultError instead of returning nil when the stored commit is missing. github.com - 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 - 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 - 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 - Configuration changed
Users on older git, including Ubuntu 22.04 defaults, must install a newer git or stay on v5.x. github.com - Signature changed
Git.Repository.stash_list
stash_list returns Array<Git::StashInfo>, newest first, instead of a String. github.com - Signature changed
Git.Repository.worktree_add
worktree_add returns a Git::WorktreeInfo instead of the git worktree add output String. github.com
git 5.0.0 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 - 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 - 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 - Behavior changed
Git.bare
Code that depends on the Git::Base return type must be updated to use Git::Repository. github.com - Behavior changed
Git.clone
Code that depends on the Git::Base return type must be updated to use Git::Repository. github.com - Behavior changed
Git.init
Code that depends on the Git::Base return type must be updated to use Git::Repository. github.com - Behavior changed
Git.open
Code that depends on the Git::Base return type must be updated to use Git::Repository. github.com
git 4.0.0 breaking changes
- Removed
The gem now requires Ruby 3.2 or greater. Upgrade Ruby to 3.2+ before updating. github.com
git 3.0.0 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 - 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
git 2.0.0.pre4 breaking changes
- Behavior changed
Errors raised by the gem were refactored, so code that rescues specific errors may need to be checked. github.com
git 2.0.0.pre2 breaking changes
- 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
Older versions
1 older version.
Show 1 older version
git 2.0.0-pre.1 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 - 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
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.