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
65 .It Cm init Ar repository-path
66 Create a new empty repository at the specified
73 command must be used to populate the empty repository before
79 .It Cm import Oo Fl b Ar branch Oc Oo Fl m Ar message Oc Oo Fl r Ar repository-path Oc Oo Fl I Ar pattern Oc Ar directory
80 Create an initial commit in a repository from the file hierarchy
83 The created commit will not have any parent commits, i.e. it will be a
85 Also create a new reference which provides a branch name for the newly
87 Show the path of each imported file to indicate progress.
93 environment variable to be set,
98 configuration settings can be obtained from the repository's
100 file or from Git's global
111 instead of creating the default branch
113 Use of this option is required if the
115 branch already exists.
117 Use the specified log message when creating the new commit.
122 opens a temporary file in an editor where a log message can be written.
123 .It Fl r Ar repository-path
124 Use the repository at the specified path.
125 If not specified, assume the repository is located at or above the current
128 Ignore files or directories with a name which matches the specified
130 This option may be specified multiple times to build a list of ignore patterns.
133 follows the globbing rules documented in
139 .It Cm clone Oo Fl a Oc Oo Fl b Ar branch Oc Oo Fl l Oc Oo Fl m Oc Oo Fl q Oc Oo Fl v Oc Oo Fl R Ar reference Oc Ar repository-URL Op Ar directory
140 Clone a Git repository at the specified
146 is specified the directory name will be derived from the name of the
149 will refuse to run if the
155 specifies a protocol scheme, a server hostname, an optional port number
156 separated from the hostname by a colon, and a path to the repository on
158 .Lk scheme://hostname:port/path/to/repository
160 The following protocol schemes are supported:
161 .Bl -tag -width git+ssh
163 The Git protocol as implemented by the
166 Use of this protocol is discouraged since it supports neither authentication
169 The Git protocol wrapped in an authenticated and encrypted
172 With this protocol the hostname may contain an embedded username for
177 Short alias for git+ssh.
180 Objects in the cloned repository are stored in a pack file which is downloaded
182 This pack file will then be indexed to facilitate access to the objects stored
184 If any objects in the pack file are stored in deltified form, all deltas will
185 be fully resolved in order to compute the ID of such objects.
186 This can take some time.
187 More details about the pack file format are documented in
188 .Xr git-repository 5 .
191 creates a remote repository entry in the
193 file of the cloned repository to store the
205 Fetch all branches from the remote repository's
208 If this option is not specified, a branch resolved via the remote
209 repository's HEAD reference will be fetched.
210 Cannot be used together with the
216 from the remote repository's
219 This option may be specified multiple times to build a list of branches
221 If the branch corresponding to the remote repository's HEAD reference is not
222 in this list, the cloned repository's HEAD reference will be set to the first
223 branch which was fetched.
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
230 List branches and tags available for fetching from the remote repository
231 and exit immediately.
232 Cannot be used together with any of the other options except
235 Create the cloned repository as a mirror of the original repository.
236 This is useful if the cloned repository will not be used to store
237 locally created commits.
241 file will be set up with the
243 option enabled, such that
247 will write incoming changes directly to branches in the
249 reference namespace, rather than to branches in the
252 This avoids the usual requirement of having to run
256 in order to make incoming changes appear on branches in the
259 But maintaining custom changes in the cloned repository becomes difficult
260 since such changes will be at risk of being discarded whenever incoming
263 Suppress progress reporting output.
264 The same option will be passed to
271 to print debugging messages to standard error output.
272 This option will be passed to
275 Multiple -v options increase the verbosity.
277 .It Fl R Ar reference
278 In addition to the branches and tags that will be fetched, fetch an arbitrary
280 from the remote repository's
283 This option may be specified multiple times to build a list of additional
287 may either be a path to a specific reference, or a reference namespace
288 which will cause all references in this namespace to be fetched.
290 Each reference will be mapped into the cloned repository's
292 namespace, unless the
294 option is used to mirror references directly into the cloned repository's
299 will refuse to fetch references from the remote repository's
308 .It Cm fetch Oo Fl a Oc Oo Fl b Ar branch Oc Oo Fl d Oc Oo Fl l Oc Oo Fl r Ar repository-path Oc Oo Fl t Oc Oo Fl q Oc Oo Fl v Oc Oo Fl R Ar reference Oc Op Ar remote-repository
309 Fetch new changes from a remote repository.
311 .Ar remote-repository
315 The remote repository's URL is obtained from the corresponding entry in the
317 file of the local repository, as created by
320 New changes will be stored in a separate pack file downloaded from the server.
321 Optionally, separate pack files stored in the repository can be combined with
324 By default, branch references in the
326 reference namespace will be updated to point at the newly fetched commits.
329 command can then be used to make new changes visible on branches in the
331 namespace, merging incoming changes with the changes on those branches
334 If the repository was created as a mirror with
336 then all branches in the
338 namespace will be updated directly to match the corresponding branches in
339 the remote repository.
340 If those branches contained local commits, these commits will no longer be
341 reachable via a reference and will therefore be at risk of being discarded
342 by Git's garbage collector.
343 Maintaining custom changes in a mirror repository is therefore discouraged.
345 In any case, references in the
347 namespace will always be fetched and mapped directly to local references
348 in the same namespace.
355 Fetch all branches from the remote repository's
358 If this option is not specified, a branch resolved via the remote
359 repository's HEAD reference will be fetched.
360 Cannot be used together with the
366 from the remote repository's
369 This option may be specified multiple times to build a list of branches
371 If this option is not specified, a branch resolved via the remote
372 repository's HEAD reference will be fetched.
373 Cannot be used together with the
377 Delete branches and tags from the local repository which are no longer
378 present in the remote repository.
379 Only references are deleted.
380 Any commit, tree, tag, and blob objects belonging to deleted branches or
381 tags remain in the repository and may be removed separately with
382 Git's garbage collector.
384 List branches and tags available for fetching from the remote repository
385 and exit immediately.
386 Cannot be used together with any of the other options except
391 Allow existing references in the
393 namespace to be updated if they have changed on the server.
394 If not specified, only new tag references will be created.
395 .It Fl r Ar repository-path
396 Use the repository at the specified path.
397 If not specified, assume the repository is located at or above the current
399 If this directory is a
401 work tree, use the repository path associated with this work tree.
403 Suppress progress reporting output.
404 The same option will be passed to
411 to print debugging messages to standard error output.
412 The same option will be passed to
415 Multiple -v options increase the verbosity.
417 .It Fl R Ar reference
418 In addition to the branches and tags that will be fetched, fetch an arbitrary
420 from the remote repository's
423 This option may be specified multiple times to build a list of additional
427 may either be a path to a specific reference, or a reference namespace
428 which will cause all references in this namespace to be fetched.
430 Each reference will be mapped into the local repository's
432 namespace, unless the local repository was created as a mirror with
434 in which case references will be mapped directly into the local repository's
438 Once a reference has been fetched, a branch based on it can be created with
443 will refuse to fetch references from the remote repository's
452 .It Cm checkout Oo Fl E Oc Oo Fl b Ar branch Oc Oo Fl c Ar commit Oc Oo Fl p Ar path-prefix Oc Ar repository-path Op Ar work-tree-path
453 Copy files from a repository into a new work tree.
454 Show the status of each affected file, using the following status codes:
455 .Bl -column YXZ description
456 .It A Ta new file was added
457 .It E Ta file already exists in work tree's meta-data
462 is not specified, either use the last component of
463 .Ar repository path ,
466 was specified use the last component of
474 Proceed with the checkout operation even if the directory at
477 Existing files will be left intact.
479 Check out files from a commit on the specified
481 If this option is not specified, a branch resolved via the repository's HEAD
482 reference will be used.
484 Check out files from the specified
486 on the selected branch.
487 The expected argument is a commit ID SHA1 hash or an existing reference
488 or tag name which will be resolved to a commit ID.
489 An abbreviated hash argument will be expanded to a full SHA1 hash
490 automatically, provided the abbreviation is unique.
491 If this option is not specified, the most recent commit on the selected
496 is not contained in the selected branch, a different branch which contains
497 this commit must be specified with the
500 If no such branch is known a new branch must be created for this
506 Checking out work trees with an unknown branch is intentionally not supported.
507 .It Fl p Ar path-prefix
508 Restrict the work tree to a subset of the repository's tree hierarchy.
509 Only files beneath the specified
516 .It Cm update Oo Fl b Ar branch Oc Oo Fl c Ar commit Oc Op Ar path ...
517 Update an existing work tree to a different
519 Change existing files in the work tree as necessary to match file contents
521 Preserve any local changes in the work tree and merge them with the
524 Files which already contain merge conflicts will not be updated to avoid
525 further complications.
526 Such files will be updated when
528 is run again after merge conflicts have been resolved.
529 If the conflicting changes are no longer needed affected files can be
536 Show the status of each affected file, using the following status codes:
537 .Bl -column YXZ description
538 .It U Ta file was updated and contained no local changes
539 .It G Ta file was updated and local changes were merged cleanly
540 .It C Ta file was updated and conflicts occurred during merge
541 .It D Ta file was deleted
542 .It A Ta new file was added
543 .It \(a~ Ta versioned file is obstructed by a non-regular file
544 .It ! Ta a missing versioned file was restored
545 .It # Ta file was not updated because it contains merge conflicts
546 .It ? Ta changes destined for an unversioned file were not merged
551 is specified, update the entire work tree.
552 Otherwise, restrict the update operation to files at or within the
554 Each path is required to exist in the update operation's target commit.
555 Files in the work tree outside specified paths will remain unchanged and
556 will retain their previously recorded base commit.
559 commands may refuse to run while the work tree contains files from
560 multiple base commits.
561 The base commit of such a work tree can be made consistent by running
563 across the entire work tree.
566 is incompatible with the
571 cannot update paths with staged changes.
572 If changes have been staged with
574 these changes must first be committed with
584 Switch the work tree's branch reference to the specified
586 before updating the work tree.
587 This option requires that all paths in the work tree are updated.
589 As usual, any local changes in the work tree will be preserved.
590 This can be useful when switching to a newly created branch in order
591 to commit existing local changes to this branch.
593 Any local changes must be dealt with separately in order to obtain a
594 work tree with pristine file contents corresponding exactly to the specified
596 Such changes could first be committed to a different branch with
598 or could be discarded with
601 Update the work tree to the specified
603 The expected argument is a commit ID SHA1 hash or an existing reference
604 or tag name which will be resolved to a commit ID.
605 An abbreviated hash argument will be expanded to a full SHA1 hash
606 automatically, provided the abbreviation is unique.
607 If this option is not specified, the most recent commit on the work tree's
613 .It Cm status Op Ar path ...
614 Show the current modification status of files in a work tree,
615 using the following status codes:
616 .Bl -column YXZ description
617 .It M Ta modified file
618 .It A Ta file scheduled for addition in next commit
619 .It D Ta file scheduled for deletion in next commit
620 .It C Ta modified or added file which contains merge conflicts
621 .It ! Ta versioned file was expected on disk but is missing
622 .It \(a~ Ta versioned file is obstructed by a non-regular file
623 .It ? Ta unversioned item not tracked by
625 .It m Ta modified file modes (executable bit only)
626 .It N Ta non-existent
628 specified on the command line
633 is specified, show modifications in the entire work tree.
634 Otherwise, show modifications at or within the specified paths.
636 If changes have been staged with
638 staged changes are shown in the second output column, using the following
640 .Bl -column YXZ description
641 .It M Ta file modification is staged
642 .It A Ta file addition is staged
643 .It D Ta file deletion is staged
646 Changes created on top of staged changes are indicated in the first column:
647 .Bl -column YXZ description
648 .It MM Ta file was modified after earlier changes have been staged
649 .It MA Ta file was modified after having been staged for addition
652 For compatibility with
663 files in each traversed directory and will not display unversioned files
664 which match these patterns.
669 supports consecutive asterisks,
671 which will match an arbitrary amount of directories.
675 only supports a single ignore pattern per line.
679 does not support negated ignore patterns prefixed with
681 and gives no special significance to the location of path component separators,
687 .It Cm log Oo Fl b Oc Oo Fl c Ar commit Oc Oo Fl C Ar number Oc Oo Fl l Ar N Oc Oo Fl p Oc Oo Fl P Oc Oo Fl s Ar search-pattern Oc Oo Fl r Ar repository-path Oc Oo Fl R Oc Oo Fl x Ar commit Oc Op Ar path
688 Display history of a repository.
691 is specified, show only commits which modified this path.
692 If invoked in a work tree, the
694 is interpreted relative to the current working directory,
695 and the work tree's path prefix is implicitly prepended.
696 Otherwise, the path is interpreted relative to the repository root.
703 Display individual commits which were merged into the current branch
707 shows the linear history of the current branch only.
709 Start traversing history at the specified
711 The expected argument is a commit ID SHA1 hash or an existing reference
712 or tag name which will be resolved to a commit ID.
713 An abbreviated hash argument will be expanded to a full SHA1 hash
714 automatically, provided the abbreviation is unique.
715 If this option is not specified, default to the work tree's current branch
716 if invoked in a work tree, or to the repository's HEAD reference.
718 Set the number of context lines shown in diffs with
720 By default, 3 lines of context are shown.
722 Limit history traversal to a given number of commits.
723 If this option is not specified, a default limit value of zero is used,
724 which is treated as an unbounded limit.
726 .Ev GOT_LOG_DEFAULT_LIMIT
727 environment variable may be set to change this default value.
729 Display the patch of modifications made in each commit.
732 is specified, only show the patch of modifications at or within this path.
734 Display the list of file paths changed in each commit, using the following
736 .Bl -column YXZ description
737 .It M Ta modified file
738 .It D Ta file was deleted
739 .It A Ta new file was added
740 .It m Ta modified file modes (executable bit only)
742 .It Fl s Ar search-pattern
743 If specified, show only commits with a log message matched by the extended
746 When used together with
748 then the file paths changed by a commit can be matched as well.
749 Regular expression syntax is documented in
751 .It Fl r Ar repository-path
752 Use the repository at the specified path.
753 If not specified, assume the repository is located at or above the current
755 If this directory is a
757 work tree, use the repository path associated with this work tree.
759 Determine a set of commits to display as usual, but display these commits
762 Stop traversing commit history as soon as the specified
765 This option has no effect if the specified
769 .It Cm diff Oo Fl C Ar number Oc Oo Fl r Ar repository-path Oc Oo Fl s Oc Oo Fl w Oc Op Ar object1 Ar object2 | Ar path
770 When invoked within a work tree with less than two arguments, display
771 local changes in the work tree.
774 is specified, only show changes within this path.
776 If two arguments are provided, treat each argument as a reference, a tag
777 name, or an object ID SHA1 hash, and display differences between the
778 corresponding objects.
779 Both objects must be of the same type (blobs, trees, or commits).
780 An abbreviated hash argument will be expanded to a full SHA1 hash
781 automatically, provided the abbreviation is unique.
788 Set the number of context lines shown in the diff.
789 By default, 3 lines of context are shown.
790 .It Fl r Ar repository-path
791 Use the repository at the specified path.
792 If not specified, assume the repository is located at or above the current
794 If this directory is a
796 work tree, use the repository path associated with this work tree.
798 Show changes staged with
800 instead of showing local changes in the work tree.
801 This option is only valid when
803 is invoked in a work tree.
805 Ignore whitespace-only changes.
810 .It Cm blame Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Ar path
811 Display line-by-line history of a file at the specified path.
818 Start traversing history at the specified
820 The expected argument is a commit ID SHA1 hash or an existing reference
821 or tag name which will be resolved to a commit ID.
822 An abbreviated hash argument will be expanded to a full SHA1 hash
823 automatically, provided the abbreviation is unique.
824 .It Fl r Ar repository-path
825 Use the repository at the specified path.
826 If not specified, assume the repository is located at or above the current
828 If this directory is a
830 work tree, use the repository path associated with this work tree.
835 .It Cm tree Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Oo Fl i Oc Oo Fl R Oc Op Ar path
836 Display a listing of files and directories at the specified
837 directory path in the repository.
838 Entries shown in this listing may carry one of the following trailing
840 .Bl -column YXZ description
841 .It @ Ta entry is a symbolic link
842 .It / Ta entry is a directory
843 .It * Ta entry is an executable file
844 .It $ Ta entry is a Git submodule
847 Symbolic link entries are also annotated with the target path of the link.
851 is specified, list the repository path corresponding to the current
852 directory of the work tree, or the root directory of the repository
853 if there is no work tree.
860 List files and directories as they appear in the specified
862 The expected argument is a commit ID SHA1 hash or an existing reference
863 or tag name which will be resolved to a commit ID.
864 An abbreviated hash argument will be expanded to a full SHA1 hash
865 automatically, provided the abbreviation is unique.
866 .It Fl r Ar repository-path
867 Use the repository at the specified path.
868 If not specified, assume the repository is located at or above the current
870 If this directory is a
872 work tree, use the repository path associated with this work tree.
874 Show object IDs of files (blob objects) and directories (tree objects).
876 Recurse into sub-directories in the repository.
881 .It Cm ref Oo Fl r Ar repository-path Oc Oo Fl l Oc Oo Fl c Ar object Oc Oo Fl s Ar reference Oc Oo Fl d Oc Op Ar name
882 Manage references in a repository.
884 References may be listed, created, deleted, and changed.
885 When creating, deleting, or changing a reference the specified
887 must be an absolute reference name, i.e. it must begin with
894 .It Fl r Ar repository-path
895 Use the repository at the specified path.
896 If not specified, assume the repository is located at or above the current
898 If this directory is a
900 work tree, use the repository path associated with this work tree.
902 List references in the repository.
905 is specified, list all existing references in the repository.
908 is a reference namespace, list all references in this namespace.
909 Otherwise, show only the reference with the given
911 Cannot be used together with any other options except
914 Create a reference or change an existing reference.
915 The reference with the specified
917 will point at the specified
921 argument is a ID SHA1 hash or an existing reference or tag name which will
922 be resolved to the ID of a corresponding commit, tree, tag, or blob object.
923 Cannot be used together with any other options except
925 .It Fl s Ar reference
926 Create a symbolic reference, or change an existing symbolic reference.
927 The symbolic reference with the specified
929 will point at the specified
931 which must already exist in the repository.
932 Care should be taken not to create loops between references when
934 Cannot be used together with any other options except
937 Delete the reference with the specified
940 Cannot be used together with any other options except
943 .It Cm branch Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Oo Fl l Oc Oo Fl d Ar name Oc Oo Fl n Oc Op Ar name
944 Create, list, or delete branches.
946 Branches are managed via references which live in the
951 command operates on references in this namespace only.
953 If invoked in a work tree without any arguments, print the name of the
954 work tree's current branch.
958 argument is passed, attempt to create a branch reference with the given name.
959 By default the new branch reference will point at the latest commit on the
960 work tree's current branch if invoked in a work tree, and otherwise to a commit
961 resolved via the repository's HEAD reference.
963 If invoked in a work tree, once the branch was created successfully
964 switch the work tree's head reference to the newly created branch and
965 update files across the entire work tree, just like
966 .Cm got update -b Ar name
968 Show the status of each affected file, using the following status codes:
969 .Bl -column YXZ description
970 .It U Ta file was updated and contained no local changes
971 .It G Ta file was updated and local changes were merged cleanly
972 .It C Ta file was updated and conflicts occurred during merge
973 .It D Ta file was deleted
974 .It A Ta new file was added
975 .It \(a~ Ta versioned file is obstructed by a non-regular file
976 .It ! Ta a missing versioned file was restored
984 Make a newly created branch reference point at the specified
988 argument is a commit ID SHA1 hash or an existing reference
989 or tag name which will be resolved to a commit ID.
990 .It Fl r Ar repository-path
991 Use the repository at the specified path.
992 If not specified, assume the repository is located at or above the current
994 If this directory is a
996 work tree, use the repository path associated with this work tree.
998 List all existing branches in the repository.
999 If invoked in a work tree, the work tree's current branch is shown
1000 with one the following annotations:
1001 .Bl -column YXZ description
1002 .It * Ta work tree's base commit matches the branch tip
1003 .It \(a~ Ta work tree's base commit is out-of-date
1006 Delete the branch with the specified name from the repository.
1007 Only the branch reference is deleted.
1008 Any commit, tree, and blob objects belonging to the branch
1009 remain in the repository and may be removed separately with
1010 Git's garbage collector.
1012 Do not switch and update the work tree after creating a new branch.
1017 .It Cm tag Oo Fl c Ar commit Oc Oo Fl m Ar message Oc Oo Fl r Ar repository-path Oc Oo Fl l Oc Ar name
1018 Manage tags in a repository.
1020 Tags are managed via references which live in the
1022 reference namespace.
1025 command operates on references in this namespace only.
1026 References in this namespace point at tag objects which contain a pointer
1027 to another object, a tag message, as well as author and timestamp information.
1029 Attempt to create a tag with the given
1031 and make this tag point at the given
1033 If no commit is specified, default to the latest commit on the work tree's
1034 current branch if invoked in a work tree, and to a commit resolved via
1035 the repository's HEAD reference otherwise.
1042 Make the newly created tag reference point at the specified
1046 argument is a commit ID SHA1 hash or an existing reference or tag name which
1047 will be resolved to a commit ID.
1048 An abbreviated hash argument will be expanded to a full SHA1 hash
1049 automatically, provided the abbreviation is unique.
1051 Use the specified tag message when creating the new tag.
1056 opens a temporary file in an editor where a tag message can be written.
1057 .It Fl r Ar repository-path
1058 Use the repository at the specified path.
1059 If not specified, assume the repository is located at or above the current
1061 If this directory is a
1063 work tree, use the repository path associated with this work tree.
1065 List all existing tags in the repository instead of creating a new tag.
1066 If this option is used, no other command-line arguments are allowed.
1071 command will not delete tags or change existing tags.
1072 If a tag must be deleted, the
1074 command may be used to delete a tag's reference.
1075 This should only be done if the tag has not already been copied to
1077 .It Cm add Oo Fl R Oc Oo Fl I Oc Ar path ...
1078 Schedule unversioned files in a work tree for addition to the
1079 repository in the next commit.
1086 Permit recursion into directories.
1087 If this option is not specified,
1089 will refuse to run if a specified
1093 With -R, add files even if they match a
1097 .It Cm remove Oo Fl f Oc Oo Fl k Oc Oo Fl R Oc Ar path ...
1098 Remove versioned files from a work tree and schedule them for deletion
1099 from the repository in the next commit.
1106 Perform the operation even if a file contains local modifications.
1108 Keep affected files on disk.
1110 Permit recursion into directories.
1111 If this option is not specified,
1113 will refuse to run if a specified
1120 .It Cm revert Oo Fl p Oc Oo Fl F Ar response-script Oc Oo Fl R Oc Ar path ...
1121 Revert any local changes in files at the specified paths in a work tree.
1122 File contents will be overwritten with those contained in the
1123 work tree's base commit.
1124 There is no way to bring discarded changes back after
1127 If a file was added with
1129 it will become an unversioned file again.
1130 If a file was deleted with
1132 it will be restored.
1139 Instead of reverting all changes in files, interactively select or reject
1140 changes to revert based on
1146 (quit reverting this file) responses.
1147 If a file is in modified status, individual patches derived from the
1148 modified file content can be reverted.
1149 Files in added or deleted status may only be reverted in their entirety.
1150 .It Fl F Ar response-script
1158 responses line-by-line from the specified
1160 file instead of prompting interactively.
1162 Permit recursion into directories.
1163 If this option is not specified,
1165 will refuse to run if a specified
1172 .It Cm commit Oo Fl m Ar message Oc Oo Fl S Oc Op Ar path ...
1173 Create a new commit in the repository from changes in a work tree
1174 and use this commit as the new base commit for the work tree.
1177 is specified, commit all changes in the work tree.
1178 Otherwise, commit changes at or within the specified paths.
1180 If changes have been explicitly staged for commit with
1182 only commit staged changes and reject any specified paths which
1183 have not been staged.
1185 Show the status of each affected file, using the following status codes:
1186 .Bl -column YXZ description
1187 .It M Ta modified file
1188 .It D Ta file was deleted
1189 .It A Ta new file was added
1190 .It m Ta modified file modes (executable bit only)
1193 Files which are not part of the new commit will retain their previously
1194 recorded base commit.
1197 commands may refuse to run while the work tree contains files from
1198 multiple base commits.
1199 The base commit of such a work tree can be made consistent by running
1201 across the entire work tree.
1205 command requires the
1207 environment variable to be set,
1212 configuration settings can be
1213 obtained from the repository's
1215 file or from Git's global
1224 Use the specified log message when creating the new commit.
1229 opens a temporary file in an editor where a log message can be written.
1231 Allow symbolic links which point somewhere outside of the path space
1235 when such a symbolic link gets installed in a work tree
1237 may decide to represent the symbolic link as a regular file which contains
1238 the link's target path, rather than creating an actual symbolic link.
1242 will refuse to run if certain preconditions are not met.
1243 If the work tree's current branch is not in the
1245 reference namespace, new commits may not be created on this branch.
1246 Local changes may only be committed if they are based on file content
1247 found in the most recent commit on the work tree's branch.
1248 If a path is found to be out of date,
1250 must be used first in order to merge local changes with changes made
1255 .It Cm cherrypick Ar commit
1256 Merge changes from a single
1261 must be on a different branch than the work tree's base commit.
1262 The expected argument is a reference or a commit ID SHA1 hash.
1263 An abbreviated hash argument will be expanded to a full SHA1 hash
1264 automatically, provided the abbreviation is unique.
1266 Show the status of each affected file, using the following status codes:
1267 .Bl -column YXZ description
1268 .It G Ta file was merged
1269 .It C Ta file was merged and conflicts occurred during merge
1270 .It ! Ta changes destined for a missing file were not merged
1271 .It D Ta file was deleted
1272 .It d Ta file's deletion was obstructed by local modifications
1273 .It A Ta new file was added
1274 .It \(a~ Ta changes destined for a non-regular file were not merged
1275 .It ? Ta changes destined for an unversioned file were not merged
1278 The merged changes will appear as local changes in the work tree, which
1281 amended manually or with further
1286 or discarded again with
1290 will refuse to run if certain preconditions are not met.
1291 If the work tree contains multiple base commits it must first be updated
1292 to a single base commit with
1294 If the work tree already contains files with merge conflicts, these
1295 conflicts must be resolved first.
1299 .It Cm backout Ar commit
1300 Reverse-merge changes from a single
1305 must be on the same branch as the work tree's base commit.
1306 The expected argument is a reference or a commit ID SHA1 hash.
1307 An abbreviated hash argument will be expanded to a full SHA1 hash
1308 automatically, provided the abbreviation is unique.
1310 Show the status of each affected file, using the following status codes:
1311 .Bl -column YXZ description
1312 .It G Ta file was merged
1313 .It C Ta file was merged and conflicts occurred during merge
1314 .It ! Ta changes destined for a missing file were not merged
1315 .It D Ta file was deleted
1316 .It d Ta file's deletion was obstructed by local modifications
1317 .It A Ta new file was added
1318 .It \(a~ Ta changes destined for a non-regular file were not merged
1319 .It ? Ta changes destined for an unversioned file were not merged
1322 The reverse-merged changes will appear as local changes in the work tree,
1323 which may be viewed with
1325 amended manually or with further
1330 or discarded again with
1334 will refuse to run if certain preconditions are not met.
1335 If the work tree contains multiple base commits it must first be updated
1336 to a single base commit with
1338 If the work tree already contains files with merge conflicts, these
1339 conflicts must be resolved first.
1343 .It Cm rebase Oo Fl a Oc Oo Fl c Oc Op Ar branch
1344 Rebase commits on the specified
1346 onto the tip of the current branch of the work tree.
1349 must share common ancestry with the work tree's current branch.
1350 Rebasing begins with the first descendant commit of the youngest
1351 common ancestor commit shared by the specified
1353 and the work tree's current branch, and stops once the tip commit
1360 is used as intended, the specified
1362 represents a local commit history and may already contain changes
1363 that are not yet visible in any other repositories.
1364 The work tree's current branch, which must be set with
1368 operation, represents a branch from a remote repository which shares
1369 a common history with the specified
1371 but has progressed, and perhaps diverged, due to commits added to the
1374 Rebased commits are accumulated on a temporary branch which the work tree
1375 will remain switched to throughout the entire rebase operation.
1376 Commits on this branch represent the same changes with the same log
1377 messages as their counterparts on the original
1379 but with different commit IDs.
1380 Once rebasing has completed successfully, the temporary branch becomes
1381 the new version of the specified
1383 and the work tree is automatically switched to it.
1385 While rebasing commits, show the status of each affected file,
1386 using the following status codes:
1387 .Bl -column YXZ description
1388 .It G Ta file was merged
1389 .It C Ta file was merged and conflicts occurred during merge
1390 .It ! Ta changes destined for a missing file were not merged
1391 .It D Ta file was deleted
1392 .It d Ta file's deletion was obstructed by local modifications
1393 .It A Ta new file was added
1394 .It \(a~ Ta changes destined for a non-regular file were not merged
1395 .It ? Ta changes destined for an unversioned file were not merged
1398 If merge conflicts occur the rebase operation is interrupted and may
1399 be continued once conflicts have been resolved.
1400 Alternatively, the rebase operation may be aborted which will leave
1402 unmodified and the work tree switched back to its original branch.
1404 If a merge conflict is resolved in a way which renders the merged
1405 change into a no-op change, the corresponding commit will be elided
1406 when the rebase operation continues.
1409 will refuse to run if certain preconditions are not met.
1410 If the work tree is not yet fully updated to the tip commit of its
1411 branch then the work tree must first be updated with
1413 If changes have been staged with
1415 these changes must first be committed with
1419 If the work tree contains local changes, these changes must first be
1426 contains changes to files outside of the work tree's path prefix,
1427 the work tree cannot be used to rebase this branch.
1433 commands will refuse to run while a rebase operation is in progress.
1434 Other commands which manipulate the work tree may be used for
1435 conflict resolution purposes.
1442 Abort an interrupted rebase operation.
1443 If this option is used, no other command-line arguments are allowed.
1445 Continue an interrupted rebase operation.
1446 If this option is used, no other command-line arguments are allowed.
1451 .It Cm histedit Oo Fl a Oc Oo Fl c Oc Oo Fl F Ar histedit-script Oc Oo Fl m Oc
1452 Edit commit history between the work tree's current base commit and
1453 the tip commit of the work tree's current branch.
1457 operation the work tree's current branch must be set with
1459 to the branch which should be edited, unless this branch is already the
1460 current branch of the work tree.
1461 The tip of this branch represents the upper bound (inclusive) of commits
1466 Furthermore, the work tree's base commit
1469 to a point in this branch's commit history where editing should begin.
1470 This commit represents the lower bound (non-inclusive) of commits touched
1475 Editing of commit history is controlled via a
1477 which can be written in an editor based on a template, passed on the
1478 command line, or generated with the
1480 option if only log messages need to be edited.
1482 The format of the histedit script is line-based.
1483 Each line in the script begins with a command name, followed by
1484 whitespace and an argument.
1485 For most commands, the expected argument is a commit ID SHA1 hash.
1486 Any remaining text on the line is ignored.
1487 Lines which begin with the
1489 character are ignored entirely.
1491 The available commands are as follows:
1492 .Bl -column YXZ pick-commit
1493 .It pick Ar commit Ta Use the specified commit as it is.
1494 .It edit Ar commit Ta Use the specified commit but once changes have been
1495 merged into the work tree interrupt the histedit operation for amending.
1496 .It fold Ar commit Ta Combine the specified commit with the next commit
1497 listed further below that will be used.
1498 .It drop Ar commit Ta Remove this commit from the edited history.
1499 .It mesg Ar log-message Ta Use the specified single-line log message for
1500 the commit on the previous line.
1501 If the log message argument is left empty, open an editor where a new
1502 log message can be written.
1505 Every commit in the history being edited must be mentioned in the script.
1506 Lines may be re-ordered to change the order of commits in the edited history.
1507 No commit may be listed more than once.
1509 Edited commits are accumulated on a temporary branch which the work tree
1510 will remain switched to throughout the entire histedit operation.
1511 Once history editing has completed successfully, the temporary branch becomes
1512 the new version of the work tree's branch and the work tree is automatically
1515 While merging commits, show the status of each affected file,
1516 using the following status codes:
1517 .Bl -column YXZ description
1518 .It G Ta file was merged
1519 .It C Ta file was merged and conflicts occurred during merge
1520 .It ! Ta changes destined for a missing file were not merged
1521 .It D Ta file was deleted
1522 .It d Ta file's deletion was obstructed by local modifications
1523 .It A Ta new file was added
1524 .It \(a~ Ta changes destined for a non-regular file were not merged
1525 .It ? Ta changes destined for an unversioned file were not merged
1528 If merge conflicts occur the histedit operation is interrupted and may
1529 be continued once conflicts have been resolved.
1530 Alternatively, the histedit operation may be aborted which will leave
1531 the work tree switched back to its original branch.
1533 If a merge conflict is resolved in a way which renders the merged
1534 change into a no-op change, the corresponding commit will be elided
1535 when the histedit operation continues.
1538 will refuse to run if certain preconditions are not met.
1539 If the work tree's current branch is not in the
1541 reference namespace, the history of the branch may not be edited.
1542 If the work tree contains multiple base commits it must first be updated
1543 to a single base commit with
1545 If changes have been staged with
1547 these changes must first be committed with
1551 If the work tree contains local changes, these changes must first be
1556 If the edited history contains changes to files outside of the work tree's
1557 path prefix, the work tree cannot be used to edit the history of this branch.
1564 commands will refuse to run while a histedit operation is in progress.
1565 Other commands which manipulate the work tree may be used, and the
1567 command may be used to commit arbitrary changes to the temporary branch
1568 while the histedit operation is interrupted.
1575 Abort an interrupted histedit operation.
1576 If this option is used, no other command-line arguments are allowed.
1578 Continue an interrupted histedit operation.
1579 If this option is used, no other command-line arguments are allowed.
1580 .It Fl F Ar histedit-script
1583 instead of opening a temporary file in an editor where a histedit script
1586 Edit log messages only.
1587 This option is a quick equivalent to a histedit script which edits
1588 only log messages but otherwise leaves every picked commit as-is.
1591 option can only be used when starting a new histedit operation.
1592 If this option is used, no other command-line arguments are allowed.
1597 .It Cm integrate Ar branch
1598 Integrate the specified
1600 into the work tree's current branch.
1601 Files in the work tree are updated to match the contents on the integrated
1603 and the reference of the work tree's branch is changed to point at the
1604 head commit of the integrated
1607 Both branches can be considered equivalent after integration since they
1608 will be pointing at the same commit.
1609 Both branches remain available for future work, if desired.
1610 In case the integrated
1612 is no longer needed it may be deleted with
1615 Show the status of each affected file, using the following status codes:
1616 .Bl -column YXZ description
1617 .It U Ta file was updated
1618 .It D Ta file was deleted
1619 .It A Ta new file was added
1620 .It \(a~ Ta versioned file is obstructed by a non-regular file
1621 .It ! Ta a missing versioned file was restored
1625 will refuse to run if certain preconditions are not met.
1626 Most importantly, the
1628 must have been rebased onto the work tree's current branch with
1630 before it can be integrated, in order to linearize commit history and
1631 resolve merge conflicts.
1632 If the work tree contains multiple base commits it must first be updated
1633 to a single base commit with
1635 If changes have been staged with
1637 these changes must first be committed with
1641 If the work tree contains local changes, these changes must first be
1649 .It Cm stage Oo Fl l Oc Oo Fl p Oc Oo Fl F Ar response-script Oc Oo Fl S Oc Op Ar path ...
1650 Stage local changes for inclusion in the next commit.
1653 is specified, stage all changes in the work tree.
1654 Otherwise, stage changes at or within the specified paths.
1655 Paths may be staged if they are added, modified, or deleted according to
1658 Show the status of each affected file, using the following status codes:
1659 .Bl -column YXZ description
1660 .It A Ta file addition has been staged
1661 .It M Ta file modification has been staged
1662 .It D Ta file deletion has been staged
1665 Staged file contents are saved in newly created blob objects in the repository.
1666 These blobs will be referred to by tree objects once staged changes have been
1669 Staged changes affect the behaviour of
1674 While paths with staged changes exist, the
1676 command will refuse to commit any paths which do not have staged changes.
1677 Local changes created on top of staged changes can only be committed if
1678 the path is staged again, or if the staged changes are committed first.
1681 command will show both local changes and staged changes.
1684 command is able to display local changes relative to staged changes,
1685 and to display staged changes relative to the repository.
1688 command cannot revert staged changes but may be used to revert
1689 local changes created on top of staged changes.
1696 Instead of staging new changes, list paths which are already staged,
1697 along with the IDs of staged blob objects and stage status codes.
1698 If paths were provided in the command line show the staged paths
1699 among the specified paths.
1700 Otherwise, show all staged paths.
1702 Instead of staging the entire content of a changed file, interactively
1703 select or reject changes for staging based on
1707 (reject change), and
1709 (quit staging this file) responses.
1710 If a file is in modified status, individual patches derived from the
1711 modified file content can be staged.
1712 Files in added or deleted status may only be staged or rejected in
1714 .It Fl F Ar response-script
1722 responses line-by-line from the specified
1724 file instead of prompting interactively.
1726 Allow symbolic links which point somewhere outside of the path space
1730 when such a symbolic link gets installed in a work tree
1732 may decide to represent the symbolic link as a regular file which contains
1733 the link's target path, rather than creating an actual symbolic link.
1737 will refuse to run if certain preconditions are not met.
1738 If a file contains merge conflicts, these conflicts must be resolved first.
1739 If a file is found to be out of date relative to the head commit on the
1740 work tree's current branch, the file must be updated with
1742 before it can be staged (however, this does not prevent the file from
1743 becoming out-of-date at some point after having been staged).
1750 commands will refuse to run while staged changes exist.
1751 If staged changes cannot be committed because a staged path
1752 is out of date, the path must be unstaged with
1754 before it can be updated with
1756 and may then be staged again if necessary.
1760 .It Cm unstage Oo Fl p Oc Oo Fl F Ar response-script Oc Op Ar path ...
1761 Merge staged changes back into the work tree and put affected paths
1762 back into non-staged status.
1765 is specified, unstage all staged changes across the entire work tree.
1766 Otherwise, unstage changes at or within the specified paths.
1768 Show the status of each affected file, using the following status codes:
1769 .Bl -column YXZ description
1770 .It G Ta file was unstaged
1771 .It C Ta file was unstaged and conflicts occurred during merge
1772 .It ! Ta changes destined for a missing file were not merged
1773 .It D Ta file was staged as deleted and still is deleted
1774 .It d Ta file's deletion was obstructed by local modifications
1775 .It \(a~ Ta changes destined for a non-regular file were not merged
1783 Instead of unstaging the entire content of a changed file, interactively
1784 select or reject changes for unstaging based on
1788 (keep change staged), and
1790 (quit unstaging this file) responses.
1791 If a file is staged in modified status, individual patches derived from the
1792 staged file content can be unstaged.
1793 Files staged in added or deleted status may only be unstaged in their entirety.
1794 .It Fl F Ar response-script
1802 responses line-by-line from the specified
1804 file instead of prompting interactively.
1809 .It Cm cat Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Oo Fl P Oc Ar arg ...
1810 Parse and print contents of objects to standard output in a line-based
1812 Content of commit, tree, and tag objects is printed in a way similar
1813 to the actual content stored in such objects.
1814 Blob object contents are printed as they would appear in files on disk.
1816 Attempt to interpret each argument as a reference, a tag name, or
1817 an object ID SHA1 hash.
1818 References will be resolved to an object ID.
1819 Tag names will resolved to a tag object.
1820 An abbreviated hash argument will be expanded to a full SHA1 hash
1821 automatically, provided the abbreviation is unique.
1823 If none of the above interpretations produce a valid result, or if the
1825 option is used, attempt to interpret the argument as a path which will
1826 be resolved to the ID of an object found at this path in the repository.
1833 Look up paths in the specified
1835 If this option is not used, paths are looked up in the commit resolved
1836 via the repository's HEAD reference.
1837 The expected argument is a commit ID SHA1 hash or an existing reference
1838 or tag name which will be resolved to a commit ID.
1839 An abbreviated hash argument will be expanded to a full SHA1 hash
1840 automatically, provided the abbreviation is unique.
1841 .It Fl r Ar repository-path
1842 Use the repository at the specified path.
1843 If not specified, assume the repository is located at or above the current
1845 If this directory is a
1847 work tree, use the repository path associated with this work tree.
1849 Interpret all arguments as paths only.
1850 This option can be used to resolve ambiguity in cases where paths
1851 look like tag names, reference names, or object IDs.
1855 .Bl -tag -width GOT_AUTHOR
1857 The author's name and email address for
1862 .Dq An Flan Hacker Aq Mt flan_hacker@openbsd.org .
1865 may fail to parse commits without an email address in author data,
1869 environment variables with a missing email address.
1875 configuration settings in the repository's
1877 file will override the value of
1883 configuration settings contained in Git's global
1885 configuration file will be used only if the
1887 environment variable is
1890 .It Ev VISUAL , EDITOR
1891 The editor spawned by
1896 .It Ev GOT_LOG_DEFAULT_LIMIT
1897 The default limit on the number of commits traversed by
1899 If set to zero, the limit is unbounded.
1900 This variable will be silently ignored if it is set to a non-numeric value.
1905 Clone an existing Git repository for use with
1909 .Dl $ got clone ssh://git@github.com/openbsd/src.git
1911 Use of HTTP URLs currently requires
1915 .Dl $ git clone --bare https://github.com/openbsd/src.git
1917 Alternatively, for quick and dirty local testing of
1919 a new Git repository could be created and populated with files,
1920 e.g. from a temporary CVS checkout located at
1923 .Dl $ got init /var/git/src.git
1924 .Dl $ got import -r /var/git/src.git -I CVS -I obj /tmp/src
1926 Check out a work tree from the Git repository to /usr/src:
1928 .Dl $ got checkout /var/git/src.git /usr/src
1930 View local changes in a work tree directory:
1933 .Dl $ got diff | less
1935 Interactively revert selected local changes in a work tree directory:
1937 .Dl $ got revert -p -R\ .
1939 In a work tree or a git repository directory, list all branch references:
1943 In a work tree or a git repository directory, create a new branch called
1944 .Dq unified-buffer-cache
1945 which is forked off the
1949 .Dl $ got branch unified-buffer-cache master
1951 Switch an existing work tree to the branch
1952 .Dq unified-buffer-cache .
1953 Local changes in the work tree will be preserved and merged if necessary:
1955 .Dl $ got update -b unified-buffer-cache
1957 Create a new commit from local changes in a work tree directory.
1958 This new commit will become the head commit of the work tree's current branch:
1962 In a work tree or a git repository directory, view changes committed in
1963 the 3 most recent commits to the work tree's branch, or the branch resolved
1964 via the repository's HEAD reference, respectively:
1966 .Dl $ got log -p -l 3
1968 As above, but display changes in the order in which
1970 could apply them in sequence:
1972 .Dl $ got log -p -l 3 -R
1974 In a work tree or a git repository directory, log the history of a subdirectory:
1976 .Dl $ got log sys/uvm
1978 While operating inside a work tree, paths are specified relative to the current
1979 working directory, so this command will log the subdirectory
1982 .Dl $ cd sys/uvm && got log '.'
1984 And this command has the same effect:
1986 .Dl $ cd sys/dev/usb && got log ../../uvm
1988 Add new files and remove obsolete files in a work tree directory:
1990 .Dl $ got add sys/uvm/uvm_ubc.c
1991 .Dl $ got remove sys/uvm/uvm_vnode.c
1993 Create a new commit from local changes in a work tree directory
1994 with a pre-defined log message.
1996 .Dl $ got commit -m 'unify the buffer cache'
1998 Alternatively, create a new commit from local changes in a work tree
1999 directory with a log message that has been prepared in the file
2006 can be read into the buffer for review:
2011 Update any work tree checked out from the
2012 .Dq unified-buffer-cache
2013 branch to the latest commit on this branch:
2017 Roll file content on the unified-buffer-cache branch back by one commit,
2018 and then fetch the rolled-back change into the work tree as a local change
2019 to be amended and perhaps committed again:
2021 .Dl $ got backout unified-buffer-cache
2022 .Dl $ got commit -m 'roll back previous'
2023 .Dl $ # now back out the previous backout :-)
2024 .Dl $ got backout unified-buffer-cache
2026 Fetch new upstream commits into the local repository's
2033 In a repository created with a HTTP URL and
2034 .Cm git clone --bare
2037 command must be used instead:
2039 .Dl $ cd /var/git/src.git
2040 .Dl $ git fetch origin master:refs/remotes/origin/master
2044 branch to merge the new changes that are now visible on the
2049 .Dl $ got update -b origin/master
2050 .Dl $ got rebase master
2053 .Dq unified-buffer-cache
2054 branch on top of the new head commit of the
2058 .Dl $ got update -b master
2059 .Dl $ got rebase unified-buffer-cache
2061 Create a patch from all changes on the unified-buffer-cache branch.
2062 The patch can be mailed out for review and applied to
2066 .Dl $ got diff master unified-buffer-cache > /tmp/ubc.diff
2068 Edit the entire commit history of the
2069 .Dq unified-buffer-cache
2072 .Dl $ got update -b unified-buffer-cache
2073 .Dl $ got update -c master
2076 In order to merge changes committed to the
2077 .Dq unified-buffer-cache
2078 branch back into the
2081 .Dq unified-buffer-cache
2082 branch must first be rebased onto the
2086 .Dl $ got update -b master
2087 .Dl $ got rebase unified-buffer-cache
2090 .Dq unified-buffer-cache
2091 branch can now be made visible on the
2095 Because the rebase operation switched the work tree to the
2096 .Dq unified-buffer-cache
2097 branch, the work tree must be switched back to the
2100 .Dq unified-buffer-cache
2101 branch can be integrated into
2104 .Dl $ got update -b master
2105 .Dl $ got integrate unified-buffer-cache
2107 Additional steps may be necessary if local changes need to be pushed back
2108 to the remote repository, which currently requires
2110 Before working against existing branches in a repository cloned with
2111 .Cm git clone --bare
2116 must be configured to map all references in the remote repository
2119 namespace of the local repository.
2120 This can achieved by setting Git's
2121 .Pa remote.origin.fetch
2122 configuration variable to the value
2123 .Dq +refs/heads/*:refs/remotes/origin/*
2128 .Dl $ cd /var/git/repo
2129 .Dl $ git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
2133 option must be disabled:
2135 .Dl $ cd /var/git/repo
2136 .Dl $ git config remote.origin.mirror false
2138 Alternatively, the following
2140 configuration item can be added manually to the Git repository's
2144 .Dl [remote "origin"]
2146 .Dl fetch = +refs/heads/*:refs/remotes/origin/*
2149 This configuration leaves the local repository's
2151 namespace free for use by local branches checked out with
2153 and, if needed, created with
2158 namespace can now be updated with incoming changes from the remote
2163 without extra command line arguments:
2165 .Dl $ cd /var/git/repo
2168 To make changes fetched from the remote repository appear on the
2172 branch must be rebased onto the
2175 This will also merge local changes, if any, with the incoming changes:
2177 .Dl $ got update -b origin/master
2178 .Dl $ got rebase master
2182 branch, log messages for local changes can now be amended with
2184 by other developers and any other important new information:
2186 .Dl $ got update -c origin/master
2187 .Dl $ got histedit -m
2189 Local changes on the
2191 branch can then be pushed to the remote
2195 .Dl $ cd /var/git/repo
2196 .Dl $ git push origin master
2199 .Xr git-repository 5 ,
2202 .An Stefan Sperling Aq Mt stsp@openbsd.org
2203 .An Martin Pieuchot Aq Mt mpi@openbsd.org
2204 .An Joshua Stein Aq Mt jcs@openbsd.org
2205 .An Ori Bernstein Aq Mt ori@openbsd.org
2208 is a work-in-progress and many commands remain to be implemented.
2209 At present, the user has to fall back on
2211 to perform many tasks, in particular tasks related to repository
2212 administration and tasks which require a network connection.