Git utilities

Git fetch refspec mapper

Preview positive and negative fetch mappings for supplied remote ref names.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Match one optional wildcard capture, substitute it into the destination and remove refs matching any negative pattern.

The example maps refs/heads/main to refs/remotes/origin/main and excludes refs/heads/tmp/work.

Limits

Named refs and HEAD only; no object-ID or shorthand expansion. Force flags are displayed, not applied. Nothing is fetched, updated or pruned.