Skip to content

CLI tool to remap commits during a migration after a history rewrite

License

mona-actions/gh-commit-remap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-commit-remap

CLI tool to remap commits during a migration after a history rewrite

Install

gh extension install mona-actions/gh-commit-remap

Upgrade

gh extension upgrade gh-commit-remap

Usage

gh commit-remap --help
Is a CLI tool that can remap commits hashed 
        after performing a history re-write when performing a migration For exam

Usage:
  gh-commit-remap [flags]

Flags:
  -h, --help                       help for gh-commit-remap
  -c, --mapping-file string        Path to the commit map file Example: /path/to/commit-map
  -m, --migration-archive string   Path to the migration archive Example: /path/to/migration-archive or /path/to/migration-archive.tar.gz

The mapping file should be in the format produced by git-filter-repo. For example:

old                                      new
892d146b368d74a64ad8a83af8ecc949ff20a408 0000000000000000000000000000000000000000
12f9bdd865d5f8b19eaaff8c94af10ec1d7f6e27 26b42504e90f3cb96e684be18ffbc3ff42d12383
...

You can provide a directory where your migration archive has been expanded, or a .tar.gz file, via the --migration-archive argument. In either case, this tool will produce a new migration archive in the current directory, appending -REMAPPED to the base filename of the original migration archive.

About

CLI tool to remap commits during a migration after a history rewrite

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •