Git 2.46
[alt-git.git] / Documentation / git-refs.txt
blob5b99e043859216353834318464d1d878d44b0646
1 git-refs(1)
2 ===========
4 NAME
5 ----
6 git-refs - Low-level access to refs
9 SYNOPSIS
10 --------
11 [verse]
12 'git refs migrate' --ref-format=<format> [--dry-run]
14 DESCRIPTION
15 -----------
17 This command provides low-level access to refs.
19 COMMANDS
20 --------
22 migrate::
23         Migrate ref store between different formats.
25 OPTIONS
26 -------
28 The following options are specific to 'git refs migrate':
30 --ref-format=<format>::
31         The ref format to migrate the ref store to. Can be one of:
33 include::ref-storage-format.txt[]
35 --dry-run::
36         Perform the migration, but do not modify the repository. The migrated
37         refs will be written into a separate directory that can be inspected
38         separately. The name of the directory will be reported on stdout. This
39         can be used to double check that the migration works as expected before
40         performing the actual migration.
42 KNOWN LIMITATIONS
43 -----------------
45 The ref format migration has several known limitations in its current form:
47 * It is not possible to migrate repositories that have reflogs.
49 * It is not possible to migrate repositories that have worktrees.
51 * There is no way to block concurrent writes to the repository during an
52   ongoing migration. Concurrent writes can lead to an inconsistent migrated
53   state. Users are expected to block writes on a higher level. If your
54   repository is registered for scheduled maintenance, it is recommended to
55   unregister it first with git-maintenance(1).
57 These limitations may eventually be lifted.
59 GIT
60 ---
61 Part of the linkgit:git[1] suite