2 .\" Copyright (c) 2017 Martin Pieuchot
3 .\" Copyright (c) 2018, 2019, 2020 Stefan Sperling
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
30 is a version control system which stores the history of tracked files
31 in a Git repository, as used by the Git version control system.
32 This repository format is described in
33 .Xr git-repository 5 .
38 version control system because every copy of a repository is writeable.
39 Modifications made to files can be synchronized between repositories
44 must be checked out from the repository for modification.
45 Checked out files are stored in a
47 which can be placed at an arbitrary directory in the filesystem hierarchy.
48 The on-disk format of this work tree is described in
52 provides global and command-specific options.
53 Global options must precede the command name, and are as follows:
54 .Bl -tag -width tenletters
56 Display usage information and exit immediately.
58 Display program version and exit immediately.
64 .Bl -tag -width checkout
71 .Op Fl r Ar repository-path
75 Create an initial commit in a repository from the file hierarchy
78 The created commit will not have any parent commits, i.e. it will be a
80 Also create a new reference which provides a branch name for the newly
82 Show the path of each imported file to indicate progress.
88 environment variable to be set,
89 unless an author has been configured in
95 configuration settings can be obtained from the repository's
97 file or from Git's global
108 If this option is not specified, a branch corresponding to the repository's
109 HEAD reference will be used.
110 Use of this option is required if the branch resolved via the repository's
111 HEAD reference already exists.
113 Ignore files or directories with a name which matches the specified
115 This option may be specified multiple times to build a list of ignore patterns.
118 follows the globbing rules documented in
120 Ignore patterns which end with a slash,
122 will only match directories.
124 Use the specified log message when creating the new commit.
129 opens a temporary file in an editor where a log message can be written.
130 .It Fl r Ar repository-path
131 Use the repository at the specified path.
132 If not specified, assume the repository is located at or above the current
140 .Op Fl R Ar reference
145 Clone a Git repository at the specified
151 is specified, the directory name will be derived from the name of the
154 will refuse to run if the
160 specifies a protocol scheme, a server hostname, an optional port number
161 separated from the hostname by a colon, and a path to the repository on
163 .Lk scheme://hostname:port/path/to/repository
165 The following protocol schemes are supported:
166 .Bl -tag -width git+ssh
168 The Git protocol as implemented by the
171 Use of this protocol is discouraged since it supports neither authentication
174 The Git protocol wrapped in an authenticated and encrypted
177 With this protocol the hostname may contain an embedded username for
182 Short alias for git+ssh.
185 Objects in the cloned repository are stored in a pack file which is downloaded
187 This pack file will then be indexed to facilitate access to the objects stored
189 If any objects in the pack file are stored in deltified form, all deltas will
190 be fully resolved in order to compute the ID of such objects.
191 This can take some time.
192 More details about the pack file format are documented in
193 .Xr git-repository 5 .
196 creates a remote repository entry in the
200 files of the cloned repository to store the
206 arguments for future use by
216 Fetch all branches from the remote repository's
218 reference namespace and set
219 .Cm fetch_all_branches
220 in the cloned repository's
222 file for future use by
224 If this option is not specified, a branch resolved via the remote
225 repository's HEAD reference will be fetched.
226 Cannot be used together with the
232 from the remote repository's
235 This option may be specified multiple times to build a list of branches
237 If the branch corresponding to the remote repository's HEAD reference is not
238 in this list, the cloned repository's HEAD reference will be set to the first
239 branch which was fetched.
240 If this option is not specified, a branch resolved via the remote
241 repository's HEAD reference will be fetched.
242 Cannot be used together with the
246 List branches and tags available for fetching from the remote repository
247 and exit immediately.
248 Cannot be used together with any of the other options except
253 Create the cloned repository as a mirror of the original repository.
254 This is useful if the cloned repository will not be used to store
255 locally created commits.
261 files will be set up with the
263 option enabled, such that
267 will write incoming changes directly to branches in the
269 reference namespace, rather than to branches in the
272 This avoids the usual requirement of having to run
276 in order to make incoming changes appear on branches in the
279 But maintaining custom changes in the cloned repository becomes difficult
280 since such changes will be at risk of being discarded whenever incoming
283 Suppress progress reporting output.
284 The same option will be passed to
287 .It Fl R Ar reference
288 In addition to the branches and tags that will be fetched, fetch an arbitrary
290 from the remote repository's
293 This option may be specified multiple times to build a list of additional
297 may either be a path to a specific reference, or a reference namespace
298 which will cause all references in this namespace to be fetched.
300 Each reference will be mapped into the cloned repository's
302 namespace, unless the
304 option is used to mirror references directly into the cloned repository's
309 will refuse to fetch references from the remote repository's
318 to print debugging messages to standard error output.
319 This option will be passed to
322 Multiple -v options increase the verbosity.
330 .Op Fl R Ar reference
331 .Op Fl r Ar repository-path
332 .Op Ar remote-repository
335 Fetch new changes from a remote repository.
337 .Ar remote-repository
341 The remote repository's URL is obtained from the corresponding entry in
345 file of the local repository, as created by
348 By default, any branches configured in
351 .Ar remote-repository
355 is invoked in a work tree then this work tree's current branch will be
356 fetched, too, provided it is present on the server.
357 If no branches to fetch can be found in
359 or via a work tree, or said branches are not found on the server, a branch
360 resolved via the remote repository's HEAD reference will be fetched.
361 Likewise, if a HEAD reference for the
362 .Ar remote-repository
363 exists but its target no longer matches the remote HEAD, then
364 the new target branch will be fetched.
365 This default behaviour can be overridden with the
371 New changes will be stored in a separate pack file downloaded from the server.
372 Optionally, separate pack files stored in the repository can be combined with
375 By default, branch references in the
377 reference namespace will be updated to point at the newly fetched commits.
380 command can then be used to make new changes visible on branches in the
382 namespace, merging incoming changes with the changes on those branches
385 If the repository was created as a mirror with
387 then all branches in the
389 namespace will be updated directly to match the corresponding branches in
390 the remote repository.
391 If those branches contained local commits, these commits will no longer be
392 reachable via a reference and will therefore be at risk of being discarded
393 by Git's garbage collector or
394 .Cm gotadmin cleanup .
395 Maintaining custom changes in a mirror repository is therefore discouraged.
397 In any case, references in the
399 namespace will always be fetched and mapped directly to local references
400 in the same namespace.
407 Fetch all branches from the remote repository's
410 This option can be enabled by default for specific repositories in
412 Cannot be used together with the
418 from the remote repository's
421 This option may be specified multiple times to build a list of branches
423 Cannot be used together with the
427 Delete branches and tags from the local repository which are no longer
428 present in the remote repository.
429 Only references are deleted.
430 Any commit, tree, tag, and blob objects belonging to deleted branches or
431 tags remain in the repository and may be removed separately with
432 Git's garbage collector or
433 .Cm gotadmin cleanup .
435 List branches and tags available for fetching from the remote repository
436 and exit immediately.
437 Cannot be used together with any of the other options except
443 Suppress progress reporting output.
444 The same option will be passed to
447 .It Fl R Ar reference
448 In addition to the branches and tags that will be fetched, fetch an arbitrary
450 from the remote repository's
453 This option may be specified multiple times to build a list of additional
457 may either be a path to a specific reference, or a reference namespace
458 which will cause all references in this namespace to be fetched.
460 Each reference will be mapped into the local repository's
462 namespace, unless the local repository was created as a mirror with
464 in which case references will be mapped directly into the local repository's
468 Once a reference has been fetched, a branch based on it can be created with
473 will refuse to fetch references from the remote repository's
478 .It Fl r Ar repository-path
479 Use the repository at the specified path.
480 If not specified, assume the repository is located at or above the current
482 If this directory is a
484 work tree, use the repository path associated with this work tree.
486 Allow existing references in the
488 namespace to be updated if they have changed on the server.
489 If not specified, only new tag references will be created.
494 to print debugging messages to standard error output.
495 The same option will be passed to
498 Multiple -v options increase the verbosity.
501 Delete all references which correspond to a particular
502 .Ar remote-repository
503 instead of fetching new changes.
504 This can be useful when a remote repository is being removed from
510 .Ar remote-repository
511 argument is mandatory and no other options except
518 Only references are deleted.
519 Any commit, tree, tag, and blob objects fetched from a remote repository
520 will generally be stored in pack files and may be removed separately with
522 and Git's garbage collector.
530 .Op Fl p Ar path-prefix
532 .Op Ar work-tree-path
535 Copy files from a repository into a new work tree.
536 Show the status of each affected file, using the following status codes:
537 .Bl -column YXZ description
538 .It A Ta new file was added
539 .It E Ta file already exists in work tree's meta-data
544 is not specified, either use the last component of
545 .Ar repository path ,
548 was specified use the last component of
556 Check out files from a commit on the specified
558 If this option is not specified, a branch resolved via the repository's HEAD
559 reference will be used.
561 Check out files from the specified
563 on the selected branch.
564 The expected argument is a commit ID SHA1 hash or an existing reference
565 or tag name which will be resolved to a commit ID.
566 An abbreviated hash argument will be expanded to a full SHA1 hash
567 automatically, provided the abbreviation is unique.
568 If this option is not specified, the most recent commit on the selected
573 is not contained in the selected branch, a different branch which contains
574 this commit must be specified with the
577 If no such branch is known, a new branch must be created for this
583 Checking out work trees with an unknown branch is intentionally not supported.
585 Proceed with the checkout operation even if the directory at
588 Existing files will be left intact.
589 .It Fl p Ar path-prefix
590 Restrict the work tree to a subset of the repository's tree hierarchy.
591 Only files beneath the specified
595 Silence progress output.
606 Update an existing work tree to a different
608 Change existing files in the work tree as necessary to match file contents
610 Preserve any local changes in the work tree and merge them with the
613 Files which already contain merge conflicts will not be updated to avoid
614 further complications.
615 Such files will be updated when
617 is run again after merge conflicts have been resolved.
618 If the conflicting changes are no longer needed, affected files can be
625 Show the status of each affected file, using the following status codes:
626 .Bl -column YXZ description
627 .It U Ta file was updated and contained no local changes
628 .It G Ta file was updated and local changes were merged cleanly
629 .It C Ta file was updated and conflicts occurred during merge
630 .It D Ta file was deleted
631 .It A Ta new file was added
632 .It \(a~ Ta versioned file is obstructed by a non-regular file
633 .It ! Ta a missing versioned file was restored
634 .It # Ta file was not updated because it contains merge conflicts
635 .It ? Ta changes destined for an unversioned file were not merged
640 is specified, update the entire work tree.
641 Otherwise, restrict the update operation to files at or within the
643 Each path is required to exist in the update operation's target commit.
644 Files in the work tree outside specified paths will remain unchanged and
645 will retain their previously recorded base commit.
648 commands may refuse to run while the work tree contains files from
649 multiple base commits.
650 The base commit of such a work tree can be made consistent by running
652 across the entire work tree.
655 is incompatible with the
660 cannot update paths with staged changes.
661 If changes have been staged with
663 these changes must first be committed with
673 Switch the work tree's branch reference to the specified
675 before updating the work tree.
676 This option requires that all paths in the work tree are updated.
678 As usual, any local changes in the work tree will be preserved.
679 This can be useful when switching to a newly created branch in order
680 to commit existing local changes to this branch.
682 Any local changes must be dealt with separately in order to obtain a
683 work tree with pristine file contents corresponding exactly to the specified
685 Such changes could first be committed to a different branch with
687 or could be discarded with
690 Update the work tree to the specified
692 The expected argument is a commit ID SHA1 hash or an existing reference
693 or tag name which will be resolved to a commit ID.
694 An abbreviated hash argument will be expanded to a full SHA1 hash
695 automatically, provided the abbreviation is unique.
696 If this option is not specified, the most recent commit on the work tree's
699 Silence progress output.
705 .Op Fl S Ar status-codes
706 .Op Fl s Ar status-codes
710 Show the current modification status of files in a work tree,
711 using the following status codes:
712 .Bl -column YXZ description
713 .It M Ta modified file
714 .It A Ta file scheduled for addition in next commit
715 .It D Ta file scheduled for deletion in next commit
716 .It C Ta modified or added file which contains merge conflicts
717 .It ! Ta versioned file was expected on disk but is missing
718 .It \(a~ Ta versioned file is obstructed by a non-regular file
719 .It ? Ta unversioned item not tracked by
721 .It m Ta modified file modes (executable bit only)
722 .It N Ta non-existent
724 specified on the command line
729 is specified, show modifications in the entire work tree.
730 Otherwise, show modifications at or within the specified paths.
732 If changes have been staged with
734 staged changes are shown in the second output column, using the following
736 .Bl -column YXZ description
737 .It M Ta file modification is staged
738 .It A Ta file addition is staged
739 .It D Ta file deletion is staged
742 Changes created on top of staged changes are indicated in the first column:
743 .Bl -column YXZ description
744 .It MM Ta file was modified after earlier changes have been staged
745 .It MA Ta file was modified after having been staged for addition
753 Show unversioned files even if they match an ignore pattern.
754 .It Fl S Ar status-codes
755 Suppress the output of files with a modification status matching any of the
756 single-character status codes contained in the
759 Any combination of codes from the above list of possible status codes
761 For staged files, status codes displayed in either column will be matched.
762 Cannot be used together with the
765 .It Fl s Ar status-codes
766 Only show files with a modification status matching any of the
767 single-character status codes contained in the
770 Any combination of codes from the above list of possible status codes
772 For staged files, status codes displayed in either column will be matched.
773 Cannot be used together with the
778 For compatibility with
789 files in each traversed directory and will not display unversioned files
790 which match these patterns.
795 supports consecutive asterisks,
797 which will match an arbitrary amount of directories.
801 only supports a single ignore pattern per line.
805 does not support negated ignore patterns prefixed with
807 and gives no special significance to the location of path component separators,
816 .Op Fl r Ar repository-path
817 .Op Fl S Ar search-pattern
821 Display history of a repository.
824 is specified, show only commits which modified this path.
825 If invoked in a work tree, the
827 is interpreted relative to the current working directory,
828 and the work tree's path prefix is implicitly prepended.
829 Otherwise, the path is interpreted relative to the repository root.
836 Display individual commits which were merged into the current branch
840 shows the linear history of the current branch only.
842 Set the number of context lines shown in diffs with
844 By default, 3 lines of context are shown.
846 Start traversing history at the specified
848 The expected argument is a commit ID SHA1 hash or an existing reference
849 or tag name which will be resolved to a commit ID.
850 An abbreviated hash argument will be expanded to a full SHA1 hash
851 automatically, provided the abbreviation is unique.
852 If this option is not specified, default to the work tree's current branch
853 if invoked in a work tree, or to the repository's HEAD reference.
855 Display diffstat of changes introduced in each commit.
856 Cannot be used with the
860 Limit history traversal to a given number of commits.
861 If this option is not specified, a default limit value of zero is used,
862 which is treated as an unbounded limit.
864 .Ev GOT_LOG_DEFAULT_LIMIT
865 environment variable may be set to change this default value.
867 Display the list of file paths changed in each commit, using the following
869 .Bl -column YXZ description
870 .It M Ta modified file
871 .It D Ta file was deleted
872 .It A Ta new file was added
873 .It m Ta modified file modes (executable bit only)
876 Cannot be used with the
880 Display the patch of modifications made in each commit.
883 is specified, only show the patch of modifications at or within this path.
884 Cannot be used with the
888 Determine a set of commits to display as usual, but display these commits
890 .It Fl r Ar repository-path
891 Use the repository at the specified path.
892 If not specified, assume the repository is located at or above the current
894 If this directory is a
896 work tree, use the repository path associated with this work tree.
897 .It Fl S Ar search-pattern
898 If specified, show only commits with a log message, author name,
899 committer name, or ID SHA1 hash matched by the extended regular
902 Lines in committed patches will be matched if
905 File paths changed by a commit will be matched if
908 Regular expression syntax is documented in
911 Display a short one-line summary of each commit, instead of the default
913 Cannot be used together with the
919 Stop traversing commit history immediately after the specified
922 This option has no effect if the specified
932 .Op Fl r Ar repository-path
933 .Op Ar object1 Ar object2 | Ar path ...
936 When invoked within a work tree without any arguments, display all
937 local changes in the work tree.
940 arguments are specified, only show changes within the specified paths.
942 If two arguments are provided, treat each argument as a reference, a tag
943 name, or an object ID SHA1 hash, and display differences between the
944 corresponding objects.
945 Both objects must be of the same type (blobs, trees, or commits).
946 An abbreviated hash argument will be expanded to a full SHA1 hash
947 automatically, provided the abbreviation is unique.
948 If none of these interpretations produce a valid result or if the
953 is running in a work tree, attempt to interpret the two arguments as paths.
960 Treat file contents as ASCII text even if binary data is detected.
962 Set the number of context lines shown in the diff.
963 By default, 3 lines of context are shown.
965 Show differences between commits in the repository.
966 This option may be used up to two times.
967 When used only once, show differences between the specified
969 and its first parent commit.
970 When used twice, show differences between the two specified commits.
972 The expected argument is a commit ID SHA1 hash or an existing reference
973 or tag name which will be resolved to a commit ID.
974 An abbreviated hash argument will be expanded to a full SHA1 hash
975 automatically, provided the abbreviation is unique.
979 option is used, all non-option arguments will be interpreted as paths.
982 arguments are provided, only show differences for the specified paths.
984 Cannot be used together with the
988 Display diffstat of changes before the actual diff by annotating each file path
989 or blob hash being diffed with the total number of lines added and removed.
990 A summary line will display the total number of changes across all files.
992 Interpret all arguments as paths only.
993 This option can be used to resolve ambiguity in cases where paths
994 look like tag names, reference names, or object IDs.
995 This option is only valid when
997 is invoked in a work tree.
998 .It Fl r Ar repository-path
999 Use the repository at the specified path.
1000 If not specified, assume the repository is located at or above the current
1002 If this directory is a
1004 work tree, use the repository path associated with this work tree.
1006 Show changes staged with
1008 instead of showing local changes in the work tree.
1009 This option is only valid when
1011 is invoked in a work tree.
1013 Ignore whitespace-only changes.
1019 .Op Fl r Ar repository-path
1023 Display line-by-line history of a file at the specified path.
1030 Start traversing history at the specified
1032 The expected argument is a commit ID SHA1 hash or an existing reference
1033 or tag name which will be resolved to a commit ID.
1034 An abbreviated hash argument will be expanded to a full SHA1 hash
1035 automatically, provided the abbreviation is unique.
1036 .It Fl r Ar repository-path
1037 Use the repository at the specified path.
1038 If not specified, assume the repository is located at or above the current
1040 If this directory is a
1042 work tree, use the repository path associated with this work tree.
1049 .Op Fl r Ar repository-path
1053 Display a listing of files and directories at the specified
1054 directory path in the repository.
1055 Entries shown in this listing may carry one of the following trailing
1057 .Bl -column YXZ description
1058 .It @ Ta entry is a symbolic link
1059 .It / Ta entry is a directory
1060 .It * Ta entry is an executable file
1061 .It $ Ta entry is a Git submodule
1064 Symbolic link entries are also annotated with the target path of the link.
1068 is specified, list the repository path corresponding to the current
1069 directory of the work tree, or the root directory of the repository
1070 if there is no work tree.
1077 List files and directories as they appear in the specified
1079 The expected argument is a commit ID SHA1 hash or an existing reference
1080 or tag name which will be resolved to a commit ID.
1081 An abbreviated hash argument will be expanded to a full SHA1 hash
1082 automatically, provided the abbreviation is unique.
1084 Show object IDs of files (blob objects) and directories (tree objects).
1086 Recurse into sub-directories in the repository.
1087 .It Fl r Ar repository-path
1088 Use the repository at the specified path.
1089 If not specified, assume the repository is located at or above the current
1091 If this directory is a
1093 work tree, use the repository path associated with this work tree.
1099 .Op Fl r Ar repository-path
1100 .Op Fl s Ar reference
1103 Manage references in a repository.
1105 References may be listed, created, deleted, and changed.
1106 When creating, deleting, or changing a reference the specified
1108 must be an absolute reference name, i.e. it must begin with
1116 Create a reference or change an existing reference.
1117 The reference with the specified
1119 will point at the specified
1123 argument is a ID SHA1 hash or an existing reference or tag name which will
1124 be resolved to the ID of a corresponding commit, tree, tag, or blob object.
1125 Cannot be used together with any other options except
1128 Delete the reference with the specified
1130 from the repository.
1131 Any commit, tree, tag, and blob objects belonging to deleted references
1132 remain in the repository and may be removed separately with
1133 Git's garbage collector or
1134 .Cm gotadmin cleanup .
1135 Cannot be used together with any other options except
1138 List references in the repository.
1141 is specified, list all existing references in the repository.
1144 is a reference namespace, list all references in this namespace.
1145 Otherwise, show only the reference with the given
1147 Cannot be used together with any other options except
1151 .It Fl r Ar repository-path
1152 Use the repository at the specified path.
1153 If not specified, assume the repository is located at or above the current
1155 If this directory is a
1157 work tree, use the repository path associated with this work tree.
1158 .It Fl s Ar reference
1159 Create a symbolic reference, or change an existing symbolic reference.
1160 The symbolic reference with the specified
1162 will point at the specified
1164 which must already exist in the repository.
1165 Care should be taken not to create loops between references when
1166 this option is used.
1167 Cannot be used together with any other options except
1170 Sort listed references by modification time (most recently modified first)
1171 instead of sorting by lexicographical order.
1172 Use of this option requires the
1174 option to be used as well.
1182 .Op Fl r Ar repository-path
1186 Create, list, or delete branches.
1188 Local branches are managed via references which live in the
1190 reference namespace.
1193 command creates references in this namespace only.
1195 When deleting branches, the specified
1199 reference namespace first.
1200 If no corresponding branch is found, the
1202 namespace will be searched next.
1204 If invoked in a work tree without any arguments, print the name of the
1205 work tree's current branch.
1209 argument is passed, attempt to create a branch reference with the given name.
1210 By default the new branch reference will point at the latest commit on the
1211 work tree's current branch if invoked in a work tree, and otherwise to a commit
1212 resolved via the repository's HEAD reference.
1214 If invoked in a work tree, once the branch was created successfully
1215 switch the work tree's head reference to the newly created branch and
1216 update files across the entire work tree, just like
1217 .Cm got update -b Ar name
1219 Show the status of each affected file, using the following status codes:
1220 .Bl -column YXZ description
1221 .It U Ta file was updated and contained no local changes
1222 .It G Ta file was updated and local changes were merged cleanly
1223 .It C Ta file was updated and conflicts occurred during merge
1224 .It D Ta file was deleted
1225 .It A Ta new file was added
1226 .It \(a~ Ta versioned file is obstructed by a non-regular file
1227 .It ! Ta a missing versioned file was restored
1235 Make a newly created branch reference point at the specified
1239 argument is a commit ID SHA1 hash or an existing reference
1240 or tag name which will be resolved to a commit ID.
1242 Delete the branch with the specified
1248 reference namespace.
1250 Only the branch reference is deleted.
1251 Any commit, tree, and blob objects belonging to the branch
1252 remain in the repository and may be removed separately with
1253 Git's garbage collector or
1254 .Cm gotadmin cleanup .
1256 List all existing branches in the repository, including copies of remote
1257 repositories' branches in the
1259 reference namespace.
1261 If invoked in a work tree, the work tree's current branch is shown
1262 with one the following annotations:
1263 .Bl -column YXZ description
1264 .It * Ta work tree's base commit matches the branch tip
1265 .It \(a~ Ta work tree's base commit is out-of-date
1268 Do not switch and update the work tree after creating a new branch.
1269 .It Fl r Ar repository-path
1270 Use the repository at the specified path.
1271 If not specified, assume the repository is located at or above the current
1273 If this directory is a
1275 work tree, use the repository path associated with this work tree.
1277 Sort listed branches by modification time (most recently modified first)
1278 instead of sorting by lexicographical order.
1281 reference namespace are listed before branches in
1284 Use of this option requires the
1286 option to be used as well.
1293 .Op Fl r Ar repository-path
1294 .Op Fl s Ar signer-id
1297 Manage tags in a repository.
1299 Tags are managed via references which live in the
1301 reference namespace.
1304 command operates on references in this namespace only.
1305 References in this namespace point at tag objects which contain a pointer
1306 to another object, a tag message, as well as author and timestamp information.
1308 Attempt to create a tag with the given
1310 and make this tag point at the given
1312 If no commit is specified, default to the latest commit on the work tree's
1313 current branch if invoked in a work tree, and to a commit resolved via
1314 the repository's HEAD reference otherwise.
1321 Make the newly created tag reference point at the specified
1325 argument is a commit ID SHA1 hash or an existing reference or tag name which
1326 will be resolved to a commit ID.
1327 An abbreviated hash argument will be expanded to a full SHA1 hash
1328 automatically, provided the abbreviation is unique.
1330 List all existing tags in the repository instead of creating a new tag.
1333 argument is passed, show only the tag with the given
1336 Use the specified tag message when creating the new tag.
1341 opens a temporary file in an editor where a tag message can be written.
1342 .It Fl r Ar repository-path
1343 Use the repository at the specified path.
1344 If not specified, assume the repository is located at or above the current
1346 If this directory is a
1348 work tree, use the repository path associated with this work tree.
1349 .It Fl s Ar signer-id
1350 While creating a new tag, sign this tag with the identity given in
1353 For SSH-based signatures,
1355 is the path to a file which may refer to either a private SSH key,
1356 or a public SSH key with the private half available via
1359 will sign the tag object by invoking
1363 command, using the signature namespace
1365 for compatibility with
1368 Verify tag object signatures.
1371 is specified, show and verify the tag object with the provided name.
1372 Otherwise, list all tag objects and verify signatures where present.
1375 verifies SSH-based signatures by invoking
1378 .Fl Y Cm verify Fl f Ar allowed_signers .
1383 otherwise verification is impossible.
1386 During SSH signature creation and verification this option will be passed to
1388 Multiple -v options increase the verbosity.
1394 command will not delete tags or change existing tags.
1395 If a tag must be deleted, the
1397 command may be used to delete a tag's reference.
1398 This should only be done if the tag has not already been copied to
1405 Schedule unversioned files in a work tree for addition to the
1406 repository in the next commit.
1407 By default, files which match a
1409 ignore pattern will not be added.
1416 Add files even if they match a
1420 Permit recursion into directories.
1421 If this option is not specified,
1423 will refuse to run if a specified
1431 .Op Fl s Ar status-codes
1435 Remove versioned files from a work tree and schedule them for deletion
1436 from the repository in the next commit.
1443 Perform the operation even if a file contains local modifications,
1444 and do not raise an error if a specified
1446 does not exist on disk.
1448 Keep affected files on disk.
1450 Permit recursion into directories.
1451 If this option is not specified,
1453 will refuse to run if a specified
1456 .It Fl s Ar status-codes
1457 Only delete files with a modification status matching one of the
1458 single-character status codes contained in the
1461 The following status codes may be specified:
1462 .Bl -column YXZ description
1463 .It M Ta modified file (this implies the
1466 .It ! Ta versioned file expected on disk but missing
1474 .Op Fl p Ar strip-count
1480 to files in a work tree.
1481 Files added or removed by a patch will be scheduled for addition or removal in
1484 The patch must be in the unified diff format as produced by
1491 diff when invoked with their
1496 argument is provided, read unified diff data from standard input instead.
1500 contains multiple patches, then attempt to apply each of them in sequence.
1502 Show the status of each affected file, using the following status codes:
1503 .Bl -column XYZ description
1504 .It M Ta file was modified
1505 .It G Ta file was merged using a merge-base found in the repository
1506 .It C Ta file was merged and conflicts occurred during merge
1507 .It D Ta file was deleted
1508 .It A Ta file was added
1509 .It # Ta failed to patch the file
1512 If a change does not match at its exact line number, attempt to
1513 apply it somewhere else in the file if a good spot can be found.
1514 Otherwise, the patch will fail to apply.
1518 will refuse to apply a patch if certain preconditions are not met.
1519 Files to be deleted must already be under version control, and must
1520 not have been scheduled for deletion already.
1521 Files to be added must not yet be under version control and must not
1522 already be present on disk.
1523 Files to be modified must already be under version control and may not
1524 contain conflict markers.
1526 If an error occurs, the
1528 operation will be aborted.
1529 Any changes made to the work tree up to this point will be left behind.
1530 Such changes can be viewed with
1532 and can be reverted with
1541 Attempt to locate files within the specified
1543 for use as a merge-base for 3-way merges.
1544 Ideally, the specified
1546 should contain versions of files which the changes contained in the
1549 Files will be located by path, relative to the repository root.
1552 option is used then leading path components will be stripped
1553 before paths are looked up in the repository.
1557 option is not used then
1559 will attempt to locate merge-bases via object IDs found in
1561 meta-data, such as produced by
1567 option is only recommended in the absence of such meta-data.
1569 In case no merge-base is available for a file, changes will be applied
1570 without doing a 3-way merge.
1571 Changes which do not apply cleanly may then be rejected entirely, rather
1572 than producing merge conflicts in the patched target file.
1574 Do not make any modifications to the work tree.
1575 This can be used to check whether a patch would apply without issues.
1578 contains diffs that affect the same file multiple times, the results
1579 displayed may be incorrect.
1580 .It Fl p Ar strip-count
1581 Specify the number of leading path components to strip from paths
1590 path prefixes generated by
1592 will be recognized and stripped automatically.
1594 Reverse the patch before applying it.
1600 .Op Fl F Ar response-script
1604 Revert any local changes in files at the specified paths in a work tree.
1605 File contents will be overwritten with those contained in the
1606 work tree's base commit.
1607 There is no way to bring discarded changes back after
1610 If a file was added with
1612 it will become an unversioned file again.
1613 If a file was deleted with
1615 it will be restored.
1621 .It Fl F Ar response-script
1629 responses line-by-line from the specified
1631 file instead of prompting interactively.
1633 Instead of reverting all changes in files, interactively select or reject
1634 changes to revert based on
1640 (quit reverting this file) responses.
1641 If a file is in modified status, individual patches derived from the
1642 modified file content can be reverted.
1643 Files in added or deleted status may only be reverted in their entirety.
1645 Permit recursion into directories.
1646 If this option is not specified,
1648 will refuse to run if a specified
1662 Create a new commit in the repository from changes in a work tree
1663 and use this commit as the new base commit for the work tree.
1666 is specified, commit all changes in the work tree.
1667 Otherwise, commit changes at or within the specified paths.
1669 If changes have been explicitly staged for commit with
1671 only commit staged changes and reject any specified paths which
1672 have not been staged.
1675 opens a temporary file in an editor where a log message can be written
1683 options are used together.
1685 Show the status of each affected file, using the following status codes:
1686 .Bl -column YXZ description
1687 .It M Ta modified file
1688 .It D Ta file was deleted
1689 .It A Ta new file was added
1690 .It m Ta modified file modes (executable bit only)
1693 Files which are not part of the new commit will retain their previously
1694 recorded base commit.
1697 commands may refuse to run while the work tree contains files from
1698 multiple base commits.
1699 The base commit of such a work tree can be made consistent by running
1701 across the entire work tree.
1705 command requires the
1707 environment variable to be set,
1708 unless an author has been configured in
1714 configuration settings can be
1715 obtained from the repository's
1717 file or from Git's global
1726 Set author information in the newly created commit to
1728 This is useful when committing changes on behalf of someone else.
1731 argument must use the same format as the
1733 environment variable.
1735 In addition to storing author information, the newly created commit
1738 information which is obtained, as usual, from the
1740 environment variable, or
1742 or Git configuration settings.
1744 Use the prepared log message stored in the file found at
1746 when creating the new commit.
1748 opens a temporary file in an editor where the prepared log message can be
1749 reviewed and edited further if needed.
1750 Cannot be used together with the
1754 Use the specified log message when creating the new commit.
1755 Cannot be used together with the
1759 This option prevents
1761 from opening the commit message in an editor.
1762 It has no effect unless it is used together with the
1764 option and is intended for non-interactive use such as scripting.
1766 This option prevents
1768 from generating a diff of the to-be-committed changes in a temporary file
1769 which can be viewed while editing a commit message.
1771 Allow the addition of symbolic links which point outside of the path space
1772 that is under version control.
1775 will reject such symbolic links due to safety concerns.
1778 may decide to represent such a symbolic link as a regular file which contains
1779 the link's target path, rather than creating an actual symbolic link which
1780 points outside of the work tree.
1781 Use of this option is discouraged because external mechanisms such as
1783 are better suited for managing symbolic links to paths not under
1788 will refuse to run if certain preconditions are not met.
1789 If the work tree's current branch is not in the
1791 reference namespace, new commits may not be created on this branch.
1792 Local changes may only be committed if they are based on file content
1793 found in the most recent commit on the work tree's branch.
1794 If a path is found to be out of date,
1796 must be used first in order to merge local changes with changes made
1804 .Op Fl r Ar repository-path
1806 .Op Ar remote-repository
1809 Send new changes to a remote repository.
1811 .Ar remote-repository
1815 The remote repository's URL is obtained from the corresponding entry in
1819 file of the local repository, as created by
1822 All objects corresponding to new changes will be written to a temporary
1823 pack file which is then uploaded to the server.
1824 Upon success, references in the
1826 reference namespace of the local repository will be updated to point at
1827 the commits which have been sent.
1829 By default, changes will only be sent if they are based on up-to-date
1830 copies of relevant branches in the remote repository.
1831 If any changes to be sent are based on out-of-date copies or would
1832 otherwise break linear history of existing branches, new changes must
1833 be fetched from the server with
1835 and local branches must be rebased with
1842 option can be used to make exceptions to these requirements.
1849 Send all branches from the local repository's
1851 reference namespace.
1854 option is equivalent to listing all branches with multiple
1857 Cannot be used together with the
1863 from the local repository's
1865 reference namespace.
1866 This option may be specified multiple times to build a list of branches
1868 If this option is not specified, default to the work tree's current branch
1869 if invoked in a work tree, or to the repository's HEAD reference.
1870 Cannot be used together with the
1874 Delete the specified
1876 from the remote repository's
1878 reference namespace.
1879 This option may be specified multiple times to build a list of branches
1882 Only references are deleted.
1883 Any commit, tree, tag, and blob objects belonging to deleted branches
1884 may become subject to deletion by Git's garbage collector running on
1887 Requesting deletion of branches results in an error if the server
1888 does not support this feature or disallows the deletion of branches
1889 based on its configuration.
1891 Attempt to force the server to overwrite existing branches or tags
1892 in the remote repository, even when
1896 would usually be required before changes can be sent.
1897 The server may reject forced requests regardless, depending on its
1900 Any commit, tree, tag, and blob objects belonging to overwritten branches
1901 or tags may become subject to deletion by Git's garbage collector running
1906 reference namespace is globally shared between all repositories.
1909 option to overwrite tags is discouraged because it can lead to
1910 inconsistencies between the tags present in different repositories.
1911 In general, creating a new tag with a different name is recommended
1912 instead of overwriting an existing tag.
1916 option is particularly discouraged if changes being sent are based
1917 on an out-of-date copy of a branch in the remote repository.
1918 Instead of using the
1920 option, new changes should
1923 and local branches should be rebased with
1925 followed by another attempt to send the changes.
1929 option should only be needed in situations where the remote repository's
1930 copy of a branch or tag is known to be out-of-date and is considered
1932 The risks of creating inconsistencies between different repositories
1933 should also be taken into account.
1935 Suppress progress reporting output.
1936 The same option will be passed to
1939 .It Fl r Ar repository-path
1940 Use the repository at the specified path.
1941 If not specified, assume the repository is located at or above the current
1943 If this directory is a
1945 work tree, use the repository path associated with this work tree.
1947 Attempt to send all tags from the local repository's
1949 reference namespace.
1952 option is equivalent to listing all tags with multiple
1955 Cannot be used together with the
1961 from the local repository's
1963 reference namespace, in addition to any branches that are being sent.
1966 option may be specified multiple times to build a list of tags to send.
1967 No tags will be sent if the
1971 Raise an error if the specified
1973 already exists in the remote repository, unless the
1975 option is used to overwrite the server's copy of the tag.
1976 In general, creating a new tag with a different name is recommended
1977 instead of overwriting an existing tag.
1979 Cannot be used together with the
1986 to print debugging messages to standard error output.
1987 The same option will be passed to
1990 Multiple -v options increase the verbosity.
2000 Merge changes from a single
2005 should be on a different branch than the work tree's base commit.
2006 The expected argument is a reference or a commit ID SHA1 hash.
2007 An abbreviated hash argument will be expanded to a full SHA1 hash
2008 automatically, provided the abbreviation is unique.
2010 Show the status of each affected file, using the following status codes:
2011 .Bl -column YXZ description
2012 .It G Ta file was merged
2013 .It C Ta file was merged and conflicts occurred during merge
2014 .It ! Ta changes destined for a missing file were not merged
2015 .It D Ta file was deleted
2016 .It d Ta file's deletion was prevented by local modifications
2017 .It A Ta new file was added
2018 .It \(a~ Ta changes destined for a non-regular file were not merged
2019 .It ? Ta changes destined for an unversioned file were not merged
2022 The merged changes will appear as local changes in the work tree, which
2025 amended manually or with further
2031 If invoked in a work tree where no
2036 operation is taking place,
2038 creates a record of commits which have been merged into the work tree.
2039 When a file changed by
2043 the log messages of relevant merged commits will then appear in the editor,
2044 where the messages should be further adjusted to convey the reasons for
2045 cherrypicking the changes.
2046 Upon exiting the editor, if the time stamp of the log message file
2047 is unchanged or the log message is empty,
2049 will fail with an unmodified or empty log message error.
2051 If all the changes in all files touched by a given commit are discarded,
2054 this commit's log message record will also disappear.
2057 will refuse to run if certain preconditions are not met.
2058 If the work tree contains multiple base commits, it must first be updated
2059 to a single base commit with
2061 If any relevant files already contain merge conflicts, these
2062 conflicts must be resolved first.
2070 Display a list of commit log messages recorded by cherrypick operations,
2071 represented by references in the
2072 .Dq refs/got/worktree
2073 reference namespace.
2076 is specified, only show the log message of the specified commit.
2078 If invoked in a work tree, only log messages recorded by cherrypick operations
2079 in the current work tree will be displayed.
2080 Otherwise, all commit log messages will be displayed irrespective of the
2081 work tree in which they were created.
2082 This option cannot be used with
2085 Delete log messages created by previous cherrypick operations, represented by
2087 .Dq refs/got/worktree
2088 reference namespace.
2091 is specified, only delete the log message of the specified commit.
2093 If invoked in a work tree, only log messages recorded by cherrypick operations
2094 in the current work tree will be deleted.
2095 Otherwise, all commit log messages will be deleted irrespective of the
2096 work tree in which they were created.
2097 This option cannot be used with
2108 Reverse-merge changes from a single
2113 should be on the same branch as the work tree's base commit.
2114 The expected argument is a reference or a commit ID SHA1 hash.
2115 An abbreviated hash argument will be expanded to a full SHA1 hash
2116 automatically, provided the abbreviation is unique.
2118 Show the status of each affected file, using the following status codes:
2119 .Bl -column YXZ description
2120 .It G Ta file was merged
2121 .It C Ta file was merged and conflicts occurred during merge
2122 .It ! Ta changes destined for a missing file were not merged
2123 .It D Ta file was deleted
2124 .It d Ta file's deletion was prevented by local modifications
2125 .It A Ta new file was added
2126 .It \(a~ Ta changes destined for a non-regular file were not merged
2127 .It ? Ta changes destined for an unversioned file were not merged
2130 The reverse-merged changes will appear as local changes in the work tree,
2131 which may be viewed with
2133 amended manually or with further
2139 If invoked in a work tree where no
2144 operation is taking place,
2146 creates a record of commits which have been reverse-merged into the work tree.
2147 When a file changed by
2151 the log messages of relevant reverse-merged commits will then appear in
2152 the editor, where the messages should be further adjusted to convey the
2153 reasons for backing out the changes.
2154 Upon exiting the editor, if the time stamp of the log message file
2155 is unchanged or the log message is empty,
2157 will fail with an unmodified or empty log message error.
2159 If all the changes in all files touched by a given commit are discarded,
2162 this commit's log message record will also disappear.
2165 will refuse to run if certain preconditions are not met.
2166 If the work tree contains multiple base commits, it must first be updated
2167 to a single base commit with
2169 If any relevant files already contain merge conflicts, these
2170 conflicts must be resolved first.
2178 Display a list of commit log messages recorded by backout operations,
2179 represented by references in the
2180 .Dq refs/got/worktree
2181 reference namespace.
2184 is specified, only show the log message of the specified commit.
2186 If invoked in a work tree, only log messages recorded by backout operations
2187 in the current work tree will be displayed.
2188 Otherwise, all commit log messages will be displayed irrespective of the
2189 work tree in which they were created.
2190 This option cannot be used with
2193 Delete log messages created by previous backout operations, represented by
2195 .Dq refs/got/worktree
2196 reference namespace.
2199 is specified, only delete the log message of the specified commit.
2201 If invoked in a work tree, only log messages recorded by backout operations
2202 in the current work tree will be deleted.
2203 Otherwise, all commit log messages will be deleted irrespective of the
2204 work tree in which they were created.
2205 This option cannot be used with
2216 Rebase commits on the specified
2218 onto the tip of the current branch of the work tree.
2221 must share common ancestry with the work tree's current branch.
2222 Rebasing begins with the first descendant commit of the youngest
2223 common ancestor commit shared by the specified
2225 and the work tree's current branch, and stops once the tip commit
2232 is used as intended, the specified
2234 represents a local commit history and may already contain changes
2235 that are not yet visible in any other repositories.
2236 The work tree's current branch, which must be set with
2240 operation, represents a branch from a remote repository which shares
2241 a common history with the specified
2243 but has progressed, and perhaps diverged, due to commits added to the
2246 Rebased commits are accumulated on a temporary branch which the work tree
2247 will remain switched to throughout the entire rebase operation.
2248 Commits on this branch represent the same changes with the same log
2249 messages as their counterparts on the original
2251 but with different commit IDs.
2252 Once rebasing has completed successfully, the temporary branch becomes
2253 the new version of the specified
2255 and the work tree is automatically switched to it.
2256 If author information is available via the
2258 environment variable,
2264 configuration settings, this author information will be used to identify
2269 Old commits in their pre-rebase state are automatically backed up in the
2270 .Dq refs/got/backup/rebase
2271 reference namespace.
2272 As long as these references are not removed older versions of rebased
2273 commits will remain in the repository and can be viewed with the
2276 Removal of these references makes objects which become unreachable via
2277 any reference subject to removal by Git's garbage collector or
2278 .Cm gotadmin cleanup .
2280 While rebasing commits, show the status of each affected file,
2281 using the following status codes:
2282 .Bl -column YXZ description
2283 .It G Ta file was merged
2284 .It C Ta file was merged and conflicts occurred during merge
2285 .It ! Ta changes destined for a missing file were not merged
2286 .It D Ta file was deleted
2287 .It d Ta file's deletion was prevented by local modifications
2288 .It A Ta new file was added
2289 .It \(a~ Ta changes destined for a non-regular file were not merged
2290 .It ? Ta changes destined for an unversioned file were not merged
2293 If merge conflicts occur, the rebase operation is interrupted and may
2294 be continued once conflicts have been resolved.
2295 If any files with destined changes are found to be missing or unversioned,
2296 or if files could not be deleted due to differences in deleted content,
2297 the rebase operation will be interrupted to prevent potentially incomplete
2298 changes from being committed to the repository without user intervention.
2299 The work tree may be modified as desired and the rebase operation can be
2300 continued once the changes present in the work tree are considered complete.
2301 Alternatively, the rebase operation may be aborted which will leave
2303 unmodified and the work tree switched back to its original branch.
2305 If a merge conflict is resolved in a way which renders the merged
2306 change into a no-op change, the corresponding commit will be elided
2307 when the rebase operation continues.
2310 will refuse to run if certain preconditions are not met.
2315 reference namespace, the branch may not be rebased.
2316 If the work tree is not yet fully updated to the tip commit of its
2317 branch, then the work tree must first be updated with
2319 If changes have been staged with
2321 these changes must first be committed with
2325 If the work tree contains local changes, these changes must first be
2332 contains changes to files outside of the work tree's path prefix,
2333 the work tree cannot be used to rebase this branch.
2342 commands will refuse to run while a rebase operation is in progress.
2343 Other commands which manipulate the work tree may be used for
2344 conflict resolution purposes.
2348 is already based on the work tree's current branch, then no commits
2349 need to be rebased and
2351 will simply switch the work tree to the specified
2353 and update files in the work tree accordingly.
2360 Abort an interrupted rebase operation.
2361 If this option is used, no other command-line arguments are allowed.
2363 Continue an interrupted rebase operation.
2364 If this option is used, no other command-line arguments are allowed.
2366 Show a list of past rebase operations, represented by references in the
2367 .Dq refs/got/backup/rebase
2368 reference namespace.
2370 Display the author, date, and log message of each backed up commit,
2371 the object ID of the corresponding post-rebase commit, and
2372 the object ID of their common ancestor commit.
2373 Given these object IDs,
2380 options can be used to examine the history of either version of the branch,
2385 option can be used to create a new branch from a pre-rebase state if desired.
2389 is specified, only show commits which at some point in time represented this
2391 Otherwise, list all backed up commits for any branches.
2393 If this option is used,
2395 does not require a work tree.
2396 None of the other options can be used together with
2399 Delete backups created by past rebase operations, represented by references
2401 .Dq refs/got/backup/rebase
2402 reference namespace.
2406 is specified, only delete backups which at some point in time represented
2408 Otherwise, delete all references found within
2409 .Dq refs/got/backup/rebase .
2411 Any commit, tree, tag, and blob objects belonging to deleted backups
2412 remain in the repository and may be removed separately with
2413 Git's garbage collector or
2414 .Cm gotadmin cleanup .
2416 If this option is used,
2418 does not require a work tree.
2419 None of the other options can be used together with
2426 .Op Fl F Ar histedit-script
2430 Edit commit history between the work tree's current base commit and
2431 the tip commit of the work tree's current branch.
2435 command requires the
2437 environment variable to be set,
2438 unless an author has been configured in
2444 configuration settings can be obtained from the repository's
2446 file or from Git's global
2452 operation, the work tree's current branch must be set with
2454 to the branch which should be edited, unless this branch is already the
2455 current branch of the work tree.
2456 The tip of this branch represents the upper bound (inclusive) of commits
2461 Furthermore, the work tree's base commit
2464 to a point in this branch's commit history where editing should begin.
2465 This commit represents the lower bound (non-inclusive) of commits touched
2470 Editing of commit history is controlled via a
2472 which can be written in an editor based on a template, passed on the
2473 command line, or generated with the
2479 The format of the histedit script is line-based.
2480 Each line in the script begins with a command name, followed by
2481 whitespace and an argument.
2482 For most commands, the expected argument is a commit ID SHA1 hash.
2483 Any remaining text on the line is ignored.
2484 Lines which begin with the
2486 character are ignored entirely.
2488 The available histedit script commands are as follows:
2489 .Bl -column YXZ pick-commit
2490 .It Cm pick Ar commit Ta Use the specified commit as it is.
2491 .It Cm edit Ar commit Ta Use the specified commit but once changes have been
2492 merged into the work tree interrupt the histedit operation for amending.
2493 .It Cm fold Ar commit Ta Combine the specified commit with the next commit
2494 listed further below that will be used.
2495 .It Cm drop Ar commit Ta Remove this commit from the edited history.
2496 .It Cm mesg Oo Ar log-message Oc Ta Create a new log message for the commit of
2501 command on the previous line of the histedit script.
2504 argument provides a new single-line log message to use.
2507 argument is omitted, open an editor where a new log message can be written.
2510 Every commit in the history being edited must be mentioned in the script.
2511 Lines may be re-ordered to change the order of commits in the edited history.
2512 No commit may be listed more than once.
2514 Edited commits are accumulated on a temporary branch which the work tree
2515 will remain switched to throughout the entire histedit operation.
2516 Once history editing has completed successfully, the temporary branch becomes
2517 the new version of the work tree's branch and the work tree is automatically
2520 Old commits in their pre-histedit state are automatically backed up in the
2521 .Dq refs/got/backup/histedit
2522 reference namespace.
2523 As long as these references are not removed older versions of edited
2524 commits will remain in the repository and can be viewed with the
2527 Removal of these references makes objects which become unreachable via
2528 any reference subject to removal by Git's garbage collector or
2529 .Cm gotadmin cleanup .
2531 While merging commits, show the status of each affected file,
2532 using the following status codes:
2533 .Bl -column YXZ description
2534 .It G Ta file was merged
2535 .It C Ta file was merged and conflicts occurred during merge
2536 .It ! Ta changes destined for a missing file were not merged
2537 .It D Ta file was deleted
2538 .It d Ta file's deletion was prevented by local modifications
2539 .It A Ta new file was added
2540 .It \(a~ Ta changes destined for a non-regular file were not merged
2541 .It ? Ta changes destined for an unversioned file were not merged
2544 If merge conflicts occur, the histedit operation is interrupted and may
2545 be continued once conflicts have been resolved.
2546 If any files with destined changes are found to be missing or unversioned,
2547 or if files could not be deleted due to differences in deleted content,
2548 the histedit operation will be interrupted to prevent potentially incomplete
2549 changes from being committed to the repository without user intervention.
2550 The work tree may be modified as desired and the histedit operation can be
2551 continued once the changes present in the work tree are considered complete.
2552 Alternatively, the histedit operation may be aborted which will leave
2553 the work tree switched back to its original branch.
2555 If a merge conflict is resolved in a way which renders the merged
2556 change into a no-op change, the corresponding commit will be elided
2557 when the histedit operation continues.
2560 will refuse to run if certain preconditions are not met.
2561 If the work tree's current branch is not in the
2563 reference namespace, the history of the branch may not be edited.
2564 If the work tree contains multiple base commits, it must first be updated
2565 to a single base commit with
2567 If changes have been staged with
2569 these changes must first be committed with
2573 If the work tree contains local changes, these changes must first be
2578 If the edited history contains changes to files outside of the work tree's
2579 path prefix, the work tree cannot be used to edit the history of this branch.
2587 commands will refuse to run while a histedit operation is in progress.
2588 Other commands which manipulate the work tree may be used, and the
2590 command may be used to commit arbitrary changes to the temporary branch
2591 while the histedit operation is interrupted.
2598 Abort an interrupted histedit operation.
2599 If this option is used, no other command-line arguments are allowed.
2601 Continue an interrupted histedit operation.
2602 If this option is used, no other command-line arguments are allowed.
2605 This option is a quick equivalent to a histedit script which drops all
2609 option can only be used when starting a new histedit operation.
2610 If this option is used, no other command-line arguments are allowed.
2612 Interrupt the histedit operation for editing after merging each commit.
2613 This option is a quick equivalent to a histedit script which uses the
2615 command for all commits.
2618 option can only be used when starting a new histedit operation.
2619 If this option is used, no other command-line arguments are allowed.
2620 .It Fl F Ar histedit-script
2623 instead of opening a temporary file in an editor where a histedit script
2626 Fold all commits into a single commit.
2627 This option is a quick equivalent to a histedit script which folds all
2628 commits, combining them all into one commit.
2631 option can only be used when starting a new histedit operation.
2632 If this option is used, no other command-line arguments are allowed.
2634 Show a list of past histedit operations, represented by references in the
2635 .Dq refs/got/backup/histedit
2636 reference namespace.
2638 Display the author, date, and log message of each backed up commit,
2639 the object ID of the corresponding post-histedit commit, and
2640 the object ID of their common ancestor commit.
2641 Given these object IDs,
2648 options can be used to examine the history of either version of the branch,
2653 option can be used to create a new branch from a pre-histedit state if desired.
2657 is specified, only show commits which at some point in time represented this
2659 Otherwise, list all backed up commits for any branches.
2661 If this option is used,
2663 does not require a work tree.
2664 None of the other options can be used together with
2667 Edit log messages only.
2668 This option is a quick equivalent to a histedit script which edits
2669 only log messages but otherwise leaves every picked commit as-is.
2672 option can only be used when starting a new histedit operation.
2673 If this option is used, no other command-line arguments are allowed.
2675 Delete backups created by past histedit operations, represented by references
2677 .Dq refs/got/backup/histedit
2678 reference namespace.
2682 is specified, only delete backups which at some point in time represented
2684 Otherwise, delete all references found within
2685 .Dq refs/got/backup/histedit .
2687 Any commit, tree, tag, and blob objects belonging to deleted backups
2688 remain in the repository and may be removed separately with
2689 Git's garbage collector or
2690 .Cm gotadmin cleanup .
2692 If this option is used,
2694 does not require a work tree.
2695 None of the other options can be used together with
2699 .It Cm integrate Ar branch
2701 Integrate the specified
2703 into the work tree's current branch.
2704 Files in the work tree are updated to match the contents on the integrated
2706 and the reference of the work tree's branch is changed to point at the
2707 head commit of the integrated
2710 Both branches can be considered equivalent after integration since they
2711 will be pointing at the same commit.
2712 Both branches remain available for future work, if desired.
2713 In case the integrated
2715 is no longer needed it may be deleted with
2718 Show the status of each affected file, using the following status codes:
2719 .Bl -column YXZ description
2720 .It U Ta file was updated
2721 .It D Ta file was deleted
2722 .It A Ta new file was added
2723 .It \(a~ Ta versioned file is obstructed by a non-regular file
2724 .It ! Ta a missing versioned file was restored
2728 will refuse to run if certain preconditions are not met.
2729 Most importantly, the
2731 must have been rebased onto the work tree's current branch with
2733 before it can be integrated, in order to linearize commit history and
2734 resolve merge conflicts.
2735 If the work tree contains multiple base commits, it must first be updated
2736 to a single base commit with
2738 If changes have been staged with
2740 these changes must first be committed with
2744 If the work tree contains local changes, these changes must first be
2756 Create a merge commit based on the current branch of the work tree and
2759 If a linear project history is desired, then use of
2761 should be preferred over
2763 However, even strictly linear projects may require merge commits in order
2764 to merge in new versions of third-party code stored on vendor branches
2768 Merge commits are commits based on multiple parent commits.
2769 The tip commit of the work tree's current branch, which must be set with
2773 operation, will be used as the first parent.
2774 The tip commit of the specified
2776 will be used as the second parent.
2778 No ancestral relationship between the two branches is required.
2779 If the two branches have already been merged previously, only new changes
2782 It is not possible to create merge commits with more than two parents.
2783 If more than one branch needs to be merged, then multiple merge commits
2784 with two parents each can be created in sequence.
2786 While merging changes found on the
2788 into the work tree, show the status of each affected file,
2789 using the following status codes:
2790 .Bl -column YXZ description
2791 .It G Ta file was merged
2792 .It C Ta file was merged and conflicts occurred during merge
2793 .It ! Ta changes destined for a missing file were not merged
2794 .It D Ta file was deleted
2795 .It d Ta file's deletion was prevented by local modifications
2796 .It A Ta new file was added
2797 .It \(a~ Ta changes destined for a non-regular file were not merged
2798 .It ? Ta changes destined for an unversioned file were not merged
2801 If merge conflicts occur, the merge operation is interrupted and conflicts
2802 must be resolved before the merge operation can continue.
2803 If any files with destined changes are found to be missing or unversioned,
2804 or if files could not be deleted due to differences in deleted content,
2805 the merge operation will be interrupted to prevent potentially incomplete
2806 changes from being committed to the repository without user intervention.
2807 The work tree may be modified as desired and the merge can be continued
2808 once the changes present in the work tree are considered complete.
2809 Alternatively, the merge operation may be aborted which will leave
2810 the work tree's current branch unmodified.
2812 If a merge conflict is resolved in a way which renders all merged
2813 changes into no-op changes, the merge operation cannot continue
2814 and must be aborted.
2817 will refuse to run if certain preconditions are not met.
2820 is based on the work tree's current branch, then no merge commit can
2823 may be used to integrate the
2826 If the work tree is not yet fully updated to the tip commit of its
2827 branch, then the work tree must first be updated with
2829 If the work tree contains multiple base commits, it must first be updated
2830 to a single base commit with
2832 If changes have been staged with
2834 these changes must first be committed with
2838 If the work tree contains local changes, these changes must first be
2845 contains changes to files outside of the work tree's path prefix,
2846 the work tree cannot be used to merge this branch.
2856 commands will refuse to run while a merge operation is in progress.
2857 Other commands which manipulate the work tree may be used for
2858 conflict resolution purposes.
2865 Abort an interrupted merge operation.
2866 If this option is used, no other command-line arguments are allowed.
2868 Continue an interrupted merge operation.
2869 If this option is used, no other command-line arguments are allowed.
2871 Merge changes into the work tree as usual but do not create a merge
2873 The merge result can be adjusted as desired before a merge commit is
2876 Alternatively, the merge may be aborted with
2883 .Op Fl F Ar response-script
2887 Stage local changes for inclusion in the next commit.
2890 is specified, stage all changes in the work tree.
2891 Otherwise, stage changes at or within the specified paths.
2892 Paths may be staged if they are added, modified, or deleted according to
2895 Show the status of each affected file, using the following status codes:
2896 .Bl -column YXZ description
2897 .It A Ta file addition has been staged
2898 .It M Ta file modification has been staged
2899 .It D Ta file deletion has been staged
2902 Staged file contents are saved in newly created blob objects in the repository.
2903 These blobs will be referred to by tree objects once staged changes have been
2906 Staged changes affect the behaviour of
2911 While paths with staged changes exist, the
2913 command will refuse to commit any paths which do not have staged changes.
2914 Local changes created on top of staged changes can only be committed if
2915 the path is staged again, or if the staged changes are committed first.
2918 command will show both local changes and staged changes.
2921 command is able to display local changes relative to staged changes,
2922 and to display staged changes relative to the repository.
2925 command cannot revert staged changes but may be used to revert
2926 local changes created on top of staged changes.
2932 .It Fl F Ar response-script
2940 responses line-by-line from the specified
2942 file instead of prompting interactively.
2944 Instead of staging new changes, list paths which are already staged,
2945 along with the IDs of staged blob objects and stage status codes.
2946 If paths were provided on the command line, show the staged paths
2947 among the specified paths.
2948 Otherwise, show all staged paths.
2950 Instead of staging the entire content of a changed file, interactively
2951 select or reject changes for staging based on
2955 (reject change), and
2957 (quit staging this file) responses.
2958 If a file is in modified status, individual patches derived from the
2959 modified file content can be staged.
2960 Files in added or deleted status may only be staged or rejected in
2963 Allow staging of symbolic links which point outside of the path space
2964 that is under version control.
2967 will reject such symbolic links due to safety concerns.
2970 may decide to represent such a symbolic link as a regular file which contains
2971 the link's target path, rather than creating an actual symbolic link which
2972 points outside of the work tree.
2973 Use of this option is discouraged because external mechanisms such as
2975 are better suited for managing symbolic links to paths not under
2980 will refuse to run if certain preconditions are not met.
2981 If a file contains merge conflicts, these conflicts must be resolved first.
2982 If a file is found to be out of date relative to the head commit on the
2983 work tree's current branch, the file must be updated with
2985 before it can be staged (however, this does not prevent the file from
2986 becoming out-of-date at some point after having been staged).
2993 commands will refuse to run while staged changes exist.
2994 If staged changes cannot be committed because a staged path
2995 is out of date, the path must be unstaged with
2997 before it can be updated with
2999 and may then be staged again if necessary.
3004 .Op Fl F Ar response-script
3008 Merge staged changes back into the work tree and put affected paths
3009 back into non-staged status.
3012 is specified, unstage all staged changes across the entire work tree.
3013 Otherwise, unstage changes at or within the specified paths.
3015 Show the status of each affected file, using the following status codes:
3016 .Bl -column YXZ description
3017 .It G Ta file was unstaged
3018 .It C Ta file was unstaged and conflicts occurred during merge
3019 .It ! Ta changes destined for a missing file were not merged
3020 .It D Ta file was staged as deleted and still is deleted
3021 .It d Ta file's deletion was prevented by local modifications
3022 .It \(a~ Ta changes destined for a non-regular file were not merged
3029 .It Fl F Ar response-script
3037 responses line-by-line from the specified
3039 file instead of prompting interactively.
3041 Instead of unstaging the entire content of a changed file, interactively
3042 select or reject changes for unstaging based on
3046 (keep change staged), and
3048 (quit unstaging this file) responses.
3049 If a file is staged in modified status, individual patches derived from the
3050 staged file content can be unstaged.
3051 Files staged in added or deleted status may only be unstaged in their entirety.
3057 .Op Fl r Ar repository-path
3060 Parse and print contents of objects to standard output in a line-based
3062 Content of commit, tree, and tag objects is printed in a way similar
3063 to the actual content stored in such objects.
3064 Blob object contents are printed as they would appear in files on disk.
3066 Attempt to interpret each argument as a reference, a tag name, or
3067 an object ID SHA1 hash.
3068 References will be resolved to an object ID.
3069 Tag names will resolved to a tag object.
3070 An abbreviated hash argument will be expanded to a full SHA1 hash
3071 automatically, provided the abbreviation is unique.
3073 If none of the above interpretations produce a valid result, or if the
3075 option is used, attempt to interpret the argument as a path which will
3076 be resolved to the ID of an object found at this path in the repository.
3083 Look up paths in the specified
3085 If this option is not used, paths are looked up in the commit resolved
3086 via the repository's HEAD reference.
3087 The expected argument is a commit ID SHA1 hash or an existing reference
3088 or tag name which will be resolved to a commit ID.
3089 An abbreviated hash argument will be expanded to a full SHA1 hash
3090 automatically, provided the abbreviation is unique.
3092 Interpret all arguments as paths only.
3093 This option can be used to resolve ambiguity in cases where paths
3094 look like tag names, reference names, or object IDs.
3095 .It Fl r Ar repository-path
3096 Use the repository at the specified path.
3097 If not specified, assume the repository is located at or above the current
3099 If this directory is a
3101 work tree, use the repository path associated with this work tree.
3103 .It Cm info Op Ar path ...
3104 Display meta-data stored in a work tree.
3109 The work tree to use is resolved implicitly by walking upwards from the
3110 current working directory.
3114 arguments are specified, show additional per-file information for tracked
3115 files located at or within these paths.
3118 argument corresponds to the work tree's root directory, display information
3119 for all tracked files.
3122 .Bl -tag -width GOT_IGNORE_GITCONFIG
3124 The author's name and email address, such as
3125 .Dq An Flan Hacker Aq Mt flan_hacker@openbsd.org .
3135 may fail to parse commits without an email address in author data,
3139 environment variables with a missing email address.
3141 .Ev GOT_AUTHOR will be overridden by configuration settings in
3147 configuration settings in the repository's
3154 configuration settings contained in Git's global
3156 configuration file will only be used if neither
3160 environment variable provide author information.
3161 .It Ev GOT_IGNORE_GITCONFIG
3162 If this variable is set then any remote repository definitions or author
3163 information found in Git configuration files will be ignored.
3164 .It Ev GOT_LOG_DEFAULT_LIMIT
3165 The default limit on the number of commits traversed by
3167 If set to zero, the limit is unbounded.
3168 This variable will be silently ignored if it is set to a non-numeric value.
3169 .It Ev VISUAL , EDITOR
3170 The editor spawned by
3178 text editor will be spawned in order to give
3180 the attention it deserves.
3183 .Bl -tag -width packed-refs -compact
3185 Repository-wide configuration settings for
3189 configuration file located in the root directory of a Git repository
3190 supersedes any relevant settings in Git's
3194 .It Pa .got/got.conf
3195 Worktree-specific configuration settings for
3199 configuration file in the
3201 meta-data directory of a work tree supersedes any relevant settings in
3204 configuration file and Git's
3211 Enable tab-completion of
3216 .Dl $ set -A complete_got_1 -- $(got -h 2>&1 | sed -n s/commands://p)
3218 Clone an existing Git repository for use with
3222 .Dl $ got clone ssh://git@github.com/openbsd/src.git
3224 Use of HTTP URLs currently requires
3228 .Dl $ git clone --bare https://github.com/openbsd/src.git
3230 Alternatively, for quick and dirty local testing of
3232 a new Git repository could be created and populated with files,
3233 e.g. from a temporary CVS checkout located at
3236 .Dl $ gotadmin init /var/git/src.git
3237 .Dl $ got import -r /var/git/src.git -I CVS -I obj /tmp/src
3239 Check out a work tree from the Git repository to /usr/src:
3241 .Dl $ got checkout /var/git/src.git /usr/src
3243 View local changes in a work tree directory:
3245 .Dl $ got diff | less
3247 In a work tree, display files in a potentially problematic state:
3249 .Dl $ got status -s 'C!~?'
3251 Interactively revert selected local changes in a work tree directory:
3253 .Dl $ got revert -p -R\ .
3255 In a work tree or a git repository directory, list all branch references:
3259 As above, but list the most recently modified branches only:
3261 .Dl $ got branch -lt | head
3263 In a work tree or a git repository directory, create a new branch called
3264 .Dq unified-buffer-cache
3265 which is forked off the
3269 .Dl $ got branch -c master unified-buffer-cache
3271 Switch an existing work tree to the branch
3272 .Dq unified-buffer-cache .
3273 Local changes in the work tree will be preserved and merged if necessary:
3275 .Dl $ got update -b unified-buffer-cache
3277 Create a new commit from local changes in a work tree directory.
3278 This new commit will become the head commit of the work tree's current branch:
3282 In a work tree or a git repository directory, view changes committed in
3283 the 3 most recent commits to the work tree's branch, or the branch resolved
3284 via the repository's HEAD reference, respectively:
3286 .Dl $ got log -p -l 3
3288 As above, but display changes in the order in which
3290 could apply them in sequence:
3292 .Dl $ got log -p -l 3 -R
3294 In a work tree or a git repository directory, log the history of a subdirectory:
3296 .Dl $ got log sys/uvm
3298 While operating inside a work tree, paths are specified relative to the current
3299 working directory, so this command will log the subdirectory
3302 .Dl $ cd sys/uvm && got log\ .
3304 And this command has the same effect:
3306 .Dl $ cd sys/dev/usb && got log ../../uvm
3308 And this command displays work tree meta-data about all tracked files:
3311 .Dl $ got info\ . | less
3313 Add new files and remove obsolete files in a work tree directory:
3315 .Dl $ got add sys/uvm/uvm_ubc.c
3316 .Dl $ got remove sys/uvm/uvm_vnode.c
3318 Create a new commit from local changes in a work tree directory
3319 with a pre-defined log message.
3321 .Dl $ got commit -m 'unify the buffer cache'
3323 Alternatively, create a new commit from local changes in a work tree
3324 directory with a log message that has been prepared in the file
3327 .Dl $ got commit -F /tmp/msg
3329 Update any work tree checked out from the
3330 .Dq unified-buffer-cache
3331 branch to the latest commit on this branch:
3335 Roll file content on the unified-buffer-cache branch back by one commit,
3336 and then fetch the rolled-back change into the work tree as a local change
3337 to be amended and perhaps committed again:
3339 .Dl $ got backout unified-buffer-cache
3340 .Dl $ got commit -m 'roll back previous'
3341 .Dl $ # now back out the previous backout :-)
3342 .Dl $ got backout unified-buffer-cache
3344 Fetch new changes on the remote repository's
3346 branch, making them visible on the local repository's
3353 In a repository created with a HTTP URL and
3354 .Cm git clone --bare
3357 command must be used instead:
3359 .Dl $ cd /var/git/src.git
3360 .Dl $ git fetch origin master:refs/remotes/origin/master
3364 branch to merge the new changes that are now visible on the
3369 .Dl $ got update -b origin/master
3370 .Dl $ got rebase master
3373 .Dq unified-buffer-cache
3374 branch on top of the new head commit of the
3378 .Dl $ got update -b master
3379 .Dl $ got rebase unified-buffer-cache
3381 Create a patch from all changes on the unified-buffer-cache branch.
3382 The patch can be mailed out for review and applied to
3386 .Dl $ got diff master unified-buffer-cache > /tmp/ubc.diff
3388 Edit the entire commit history of the
3389 .Dq unified-buffer-cache
3392 .Dl $ got update -b unified-buffer-cache
3393 .Dl $ got update -c master
3396 Before working against existing branches in a repository cloned with
3397 .Cm git clone --bare
3402 must be configured to map all references in the remote repository
3405 namespace of the local repository.
3406 This can be achieved by setting Git's
3407 .Pa remote.origin.fetch
3408 configuration variable to the value
3409 .Dq +refs/heads/*:refs/remotes/origin/*
3414 .Dl $ cd /var/git/repo
3415 .Dl $ git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
3419 option must be disabled:
3421 .Dl $ cd /var/git/repo
3422 .Dl $ git config remote.origin.mirror false
3424 Alternatively, the following
3426 configuration item can be added manually to the Git repository's
3430 .Dl [remote \&"origin\&"]
3432 .Dl fetch = +refs/heads/*:refs/remotes/origin/*
3435 This configuration leaves the local repository's
3437 namespace free for use by local branches checked out with
3439 and, if needed, created with
3442 .Dq refs/remotes/origin
3443 namespace can now be updated with incoming changes from the remote
3448 without extra command line arguments.
3449 Newly fetched changes can be examined with
3452 Display changes on the remote repository's version of the
3454 branch, as of the last time
3458 .Dl $ got log -c origin/master | less
3460 As shown here, most commands accept abbreviated reference names such as
3463 .Dq refs/remotes/origin/master .
3464 The latter is only needed in case of ambiguity.
3467 must be used to merge changes which are visible on the
3472 This will also merge local changes, if any, with the incoming changes:
3474 .Dl $ got update -b origin/master
3475 .Dl $ got rebase master
3477 In order to make changes committed to the
3478 .Dq unified-buffer-cache
3482 .Dq unified-buffer-cache
3483 branch must first be rebased onto the
3487 .Dl $ got update -b master
3488 .Dl $ got rebase unified-buffer-cache
3491 .Dq unified-buffer-cache
3492 branch can now be made visible on the
3496 Because the rebase operation switched the work tree to the
3497 .Dq unified-buffer-cache
3498 branch, the work tree must be switched back to the
3502 .Dl $ got update -b master
3503 .Dl $ got integrate unified-buffer-cache
3507 branch, log messages for local changes can now be amended with
3509 by other developers and any other important new information:
3511 .Dl $ got update -c origin/master
3512 .Dl $ got histedit -m
3514 If the remote repository offers write access, local changes on the
3516 branch can be sent to the remote repository with
3520 can be run without further arguments.
3521 The arguments shown here match defaults, provided the work tree's
3522 current branch is the
3526 .Dl $ got send -b master origin
3528 If the remote repository requires the HTTPS protocol, the
3530 command must be used instead:
3532 .Dl $ cd /var/git/src.git
3533 .Dl $ git push origin master
3535 When making contributions to projects which use the
3537 workflow, SSH protocol repository access needs to be set up first.
3538 Once an account has been created on a Git hosting site it should
3539 be possible to upload a public SSH key for repository access
3544 workflow will usually involve two remote repositories.
3545 In the real-life example below, the
3547 repository was forked from the
3549 repository by using the Git hosting site's web interface.
3552 file in the local repository describes both remote repositories:
3553 .Bd -literal -offset indent
3554 # Jelmers's repository, which accepts pull requests
3556 server git@github.com
3558 repository "/jelmer/dulwich"
3562 # Stefan's fork, used as the default remote repository
3564 server git@github.com
3566 repository "/stspdotname/dulwich"
3571 With this configuration, Stefan can create commits on
3572 .Dq refs/heads/master
3573 and send them to the
3575 repository by running:
3577 .Dl $ got send -b master origin
3579 The changes can now be proposed to Jelmer by opening a pull request
3580 via the Git hosting site's web interface.
3581 If Jelmer requests further changes to be made, additional commits
3582 can be created on the
3584 branch and be added to the pull request by running
3588 If Jelmer prefers additional commits to be
3590 then the following commands can be used to achieve this:
3592 .Dl $ got update -b master
3593 .Dl $ got update -c origin/master
3594 .Dl $ got histedit -f
3595 .Dl $ got send -f -b master origin
3597 Once Jelmer has accepted the pull request, Stefan can fetch the
3598 merged changes, and possibly several other new changes, by running:
3600 .Dl $ got fetch upstream
3602 The merged changes will now be visible under the reference
3603 .Dq refs/remotes/upstream/master .
3606 branch can now be rebased on top of the latest changes
3609 .Dl $ got update -b upstream/master
3610 .Dl $ got rebase master
3612 As a final step, the forked repository's copy of the master branch needs
3613 to be kept in sync by sending the new changes there:
3615 .Dl $ got send -f -b master origin
3617 If multiple pull requests need to be managed in parallel, a separate branch
3618 must be created for each pull request with
3620 Each such branch can then be used as above, in place of
3621 .Dq refs/heads/master .
3622 Changes for any accepted pull requests will still appear under
3623 .Dq refs/remotes/upstream/master,
3624 regardless of which branch was used in the forked repository to
3625 create a pull request.
3629 .Xr git-repository 5 ,
3630 .Xr got-worktree 5 ,
3634 .An Anthony J. Bentley Aq Mt bentley@openbsd.org
3635 .An Christian Weisgerber Aq Mt naddy@openbsd.org
3636 .An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org
3637 .An Josh Rickmar Aq Mt jrick@zettaport.com
3638 .An Joshua Stein Aq Mt jcs@openbsd.org
3639 .An Klemens Nanni Aq Mt kn@openbsd.org
3640 .An Martin Pieuchot Aq Mt mpi@openbsd.org
3641 .An Neels Hofmeyr Aq Mt neels@hofmeyr.de
3642 .An Omar Polo Aq Mt op@openbsd.org
3643 .An Ori Bernstein Aq Mt ori@openbsd.org
3644 .An Sebastien Marie Aq Mt semarie@openbsd.org
3645 .An Stefan Sperling Aq Mt stsp@openbsd.org
3646 .An Steven McDonald Aq Mt steven@steven-mcdonald.id.au
3647 .An Theo Buehler Aq Mt tb@openbsd.org
3648 .An Thomas Adam Aq Mt thomas@xteddy.org
3649 .An Tracey Emery Aq Mt tracey@traceyemery.net
3650 .An Yang Zhong Aq Mt yzhong@freebsdfoundation.org
3657 were derived from code under copyright by:
3659 .An Caldera International
3660 .An Daniel Hartmeier
3665 .An Jean-Francois Brousseau
3671 .An Niklas Hallqvist
3676 .An Xavier Santolaria
3679 contains code contributed to the public domain by
3680 .An Austin Appleby .
3683 is a work-in-progress and some features remain to be implemented.
3685 At present, the user has to fall back on
3687 to perform some tasks.
3691 Reading from remote repositories over HTTP or HTTPS protocols requires
3696 Writing to remote repositories over HTTP or HTTPS protocols requires
3699 The creation of merge commits with more than two parent commits requires
3702 In situations where files or directories were moved around
3704 will not automatically merge changes to new locations and
3706 will usually produce better results.