Skip to content
Snippets Groups Projects
Commit 27a8b337 authored by Jean-Noël Avila's avatar Jean-Noël Avila
Browse files

Import sources from v2.28.0

parent 88bb1720
No related branches found
No related tags found
No related merge requests found
GIT_VERSION = 2.27.0 GIT_VERSION = 2.28.0
...@@ -643,15 +643,18 @@ ifndef::git-format-patch[] ...@@ -643,15 +643,18 @@ ifndef::git-format-patch[]
-R:: -R::
Swap two inputs; that is, show differences from index or Swap two inputs; that is, show differences from index or
on-disk file to tree contents. on-disk file to tree contents.
endif::git-format-patch[]
--relative[=<path>]:: --relative[=<path>]::
--no-relative::
When run from a subdirectory of the project, it can be When run from a subdirectory of the project, it can be
told to exclude changes outside the directory and show told to exclude changes outside the directory and show
pathnames relative to it with this option. When you are pathnames relative to it with this option. When you are
not in a subdirectory (e.g. in a bare repository), you not in a subdirectory (e.g. in a bare repository), you
can name which subdirectory to make the output relative can name which subdirectory to make the output relative
to by giving a <path> as an argument. to by giving a <path> as an argument.
endif::git-format-patch[] `--no-relative` can be used to countermand both `diff.relative` config
option and previous `--relative`.
-a:: -a::
--text:: --text::
......
...@@ -12,7 +12,7 @@ SYNOPSIS ...@@ -12,7 +12,7 @@ SYNOPSIS
[-v [--abbrev=<length> | --no-abbrev]] [-v [--abbrev=<length> | --no-abbrev]]
[--column[=<options>] | --no-column] [--sort=<key>] [--column[=<options>] | --no-column] [--sort=<key>]
[(--merged | --no-merged) [<commit>]] [(--merged | --no-merged) [<commit>]]
[--contains [<commit]] [--no-contains [<commit>]] [--contains [<commit>]] [--no-contains [<commit>]]
[--points-at <object>] [--format=<format>] [--points-at <object>] [--format=<format>]
[(-r | --remotes) | (-a | --all)] [(-r | --remotes) | (-a | --all)]
[--list] [<pattern>...] [--list] [<pattern>...]
......
...@@ -29,6 +29,7 @@ The following information is captured automatically: ...@@ -29,6 +29,7 @@ The following information is captured automatically:
- uname sysname, release, version, and machine strings - uname sysname, release, version, and machine strings
- Compiler-specific info string - Compiler-specific info string
- A list of enabled hooks - A list of enabled hooks
- $SHELL
This tool is invoked via the typical Git setup process, which means that in some This tool is invoked via the typical Git setup process, which means that in some
cases, it might not be able to launch - for example, if a relevant config file cases, it might not be able to launch - for example, if a relevant config file
......
...@@ -10,7 +10,7 @@ SYNOPSIS ...@@ -10,7 +10,7 @@ SYNOPSIS
-------- --------
[verse] [verse]
'git cat-file' (-t [--allow-unknown-type]| -s [--allow-unknown-type]| -e | -p | <type> | --textconv | --filters ) [--path=<path>] <object> 'git cat-file' (-t [--allow-unknown-type]| -s [--allow-unknown-type]| -e | -p | <type> | --textconv | --filters ) [--path=<path>] <object>
'git cat-file' (--batch | --batch-check) [ --textconv | --filters ] [--follow-symlinks] 'git cat-file' (--batch[=<format>] | --batch-check[=<format>]) [ --textconv | --filters ] [--follow-symlinks]
DESCRIPTION DESCRIPTION
----------- -----------
......
...@@ -259,7 +259,7 @@ maintain a branch with no references other than a single cloned ...@@ -259,7 +259,7 @@ maintain a branch with no references other than a single cloned
branch. This is useful e.g. to maintain minimal clones of the default branch. This is useful e.g. to maintain minimal clones of the default
branch of some repository for search indexing. branch of some repository for search indexing.
--recurse-submodules[=<pathspec]:: --recurse-submodules[=<pathspec>]::
After the clone is created, initialize and clone submodules After the clone is created, initialize and clone submodules
within based on the provided pathspec. If no pathspec is within based on the provided pathspec. If no pathspec is
provided, all submodules are initialized and cloned. provided, all submodules are initialized and cloned.
......
...@@ -11,15 +11,17 @@ SYNOPSIS ...@@ -11,15 +11,17 @@ SYNOPSIS
[verse] [verse]
'git diff' [<options>] [<commit>] [--] [<path>...] 'git diff' [<options>] [<commit>] [--] [<path>...]
'git diff' [<options>] --cached [<commit>] [--] [<path>...] 'git diff' [<options>] --cached [<commit>] [--] [<path>...]
'git diff' [<options>] <commit> <commit> [--] [<path>...] 'git diff' [<options>] <commit> [<commit>...] <commit> [--] [<path>...]
'git diff' [<options>] <commit>...<commit> [--] [<path>...]
'git diff' [<options>] <blob> <blob> 'git diff' [<options>] <blob> <blob>
'git diff' [<options>] --no-index [--] <path> <path> 'git diff' [<options>] --no-index [--] <path> <path>
DESCRIPTION DESCRIPTION
----------- -----------
Show changes between the working tree and the index or a tree, changes Show changes between the working tree and the index or a tree, changes
between the index and a tree, changes between two trees, changes between between the index and a tree, changes between two trees, changes resulting
two blob objects, or changes between two files on disk. from a merge, changes between two blob objects, or changes between two
files on disk.
'git diff' [<options>] [--] [<path>...]:: 'git diff' [<options>] [--] [<path>...]::
...@@ -67,6 +69,15 @@ two blob objects, or changes between two files on disk. ...@@ -67,6 +69,15 @@ two blob objects, or changes between two files on disk.
one side is omitted, it will have the same effect as one side is omitted, it will have the same effect as
using HEAD instead. using HEAD instead.
'git diff' [<options>] <commit> [<commit>...] <commit> [--] [<path>...]::
This form is to view the results of a merge commit. The first
listed <commit> must be the merge itself; the remaining two or
more commits should be its parents. A convenient way to produce
the desired set of revisions is to use the {caret}@ suffix.
For instance, if `master` names a merge commit, `git diff master
master^@` gives the same combined diff as `git show master`.
'git diff' [<options>] <commit>\...<commit> [--] [<path>...]:: 'git diff' [<options>] <commit>\...<commit> [--] [<path>...]::
This form is to view the changes on the branch containing This form is to view the changes on the branch containing
...@@ -196,7 +207,8 @@ linkgit:git-difftool[1], ...@@ -196,7 +207,8 @@ linkgit:git-difftool[1],
linkgit:git-log[1], linkgit:git-log[1],
linkgit:gitdiffcore[7], linkgit:gitdiffcore[7],
linkgit:git-format-patch[1], linkgit:git-format-patch[1],
linkgit:git-apply[1] linkgit:git-apply[1],
linkgit:git-show[1]
GIT GIT
--- ---
......
...@@ -119,6 +119,11 @@ by keeping the marks the same across runs. ...@@ -119,6 +119,11 @@ by keeping the marks the same across runs.
the shape of the history and stored tree. See the section on the shape of the history and stored tree. See the section on
`ANONYMIZING` below. `ANONYMIZING` below.
--anonymize-map=<from>[:<to>]::
Convert token `<from>` to `<to>` in the anonymized output. If
`<to>` is omitted, map `<from>` to itself (i.e., do not
anonymize it). See the section on `ANONYMIZING` below.
--reference-excluded-parents:: --reference-excluded-parents::
By default, running a command such as `git fast-export By default, running a command such as `git fast-export
master~5..master` will not include the commit master{tilde}5 master~5..master` will not include the commit master{tilde}5
...@@ -238,6 +243,30 @@ collapse "User 0", "User 1", etc into "User X"). This produces a much ...@@ -238,6 +243,30 @@ collapse "User 0", "User 1", etc into "User X"). This produces a much
smaller output, and it is usually easy to quickly confirm that there is smaller output, and it is usually easy to quickly confirm that there is
no private data in the stream. no private data in the stream.
Reproducing some bugs may require referencing particular commits or
paths, which becomes challenging after refnames and paths have been
anonymized. You can ask for a particular token to be left as-is or
mapped to a new value. For example, if you have a bug which reproduces
with `git rev-list sensitive -- secret.c`, you can run:
---------------------------------------------------
$ git fast-export --anonymize --all \
--anonymize-map=sensitive:foo \
--anonymize-map=secret.c:bar.c \
>stream
---------------------------------------------------
After importing the stream, you can then run `git rev-list foo -- bar.c`
in the anonymized repository.
Note that paths and refnames are split into tokens at slash boundaries.
The command above would anonymize `subdir/secret.c` as something like
`path123/bar.c`; you could then search for `bar.c` in the anonymized
repository to determine the final pathname.
To make referencing the final pathname simpler, you can map each path
component; so if you also anonymize `subdir` to `publicdir`, then the
final pathname would be `publicdir/bar.c`.
LIMITATIONS LIMITATIONS
----------- -----------
......
...@@ -293,7 +293,14 @@ by users who are located in the same location and time zone. In this ...@@ -293,7 +293,14 @@ by users who are located in the same location and time zone. In this
case a reasonable offset from UTC could be assumed. case a reasonable offset from UTC could be assumed.
+ +
Unlike the `rfc2822` format, this format is very strict. Any Unlike the `rfc2822` format, this format is very strict. Any
variation in formatting will cause fast-import to reject the value. variation in formatting will cause fast-import to reject the value,
and some sanity checks on the numeric values may also be performed.
`raw-permissive`::
This is the same as `raw` except that no sanity checks on
the numeric epoch and local offset are performed. This can
be useful when trying to filter or import an existing history
with e.g. bogus timezone values.
`rfc2822`:: `rfc2822`::
This is the standard email format as described by RFC 2822. This is the standard email format as described by RFC 2822.
......
...@@ -255,14 +255,14 @@ refspec. ...@@ -255,14 +255,14 @@ refspec.
* Using refspecs explicitly: * Using refspecs explicitly:
+ +
------------------------------------------------ ------------------------------------------------
$ git fetch origin +pu:pu maint:tmp $ git fetch origin +seen:seen maint:tmp
------------------------------------------------ ------------------------------------------------
+ +
This updates (or creates, as necessary) branches `pu` and `tmp` in This updates (or creates, as necessary) branches `seen` and `tmp` in
the local repository by fetching from the branches (respectively) the local repository by fetching from the branches (respectively)
`pu` and `maint` from the remote repository. `seen` and `maint` from the remote repository.
+ +
The `pu` branch will be updated even if it does not fast-forward, The `seen` branch will be updated even if it does not fast-forward,
because it is prefixed with a plus sign; `tmp` will not be. because it is prefixed with a plus sign; `tmp` will not be.
* Peek at a remote's branch, without configuring the remote in your local * Peek at a remote's branch, without configuring the remote in your local
......
...@@ -209,7 +209,7 @@ providing this option will cause it to die. ...@@ -209,7 +209,7 @@ providing this option will cause it to die.
Use \0 as the delimiter for pathnames in the output, and print Use \0 as the delimiter for pathnames in the output, and print
them verbatim. Without this option, pathnames with "unusual" them verbatim. Without this option, pathnames with "unusual"
characters are quoted as explained for the configuration characters are quoted as explained for the configuration
variable core.quotePath (see linkgit:git-config[1]). variable core.quotePath (see glinkgit:it-config[1]).
-o:: -o::
--only-matching:: --only-matching::
......
...@@ -9,7 +9,7 @@ git-http-fetch - Download from a remote Git repository via HTTP ...@@ -9,7 +9,7 @@ git-http-fetch - Download from a remote Git repository via HTTP
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'git http-fetch' [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [--stdin] <commit> <url> 'git http-fetch' [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [--stdin | --packfile=<hash> | <commit>] <url>
DESCRIPTION DESCRIPTION
----------- -----------
...@@ -40,6 +40,13 @@ commit-id:: ...@@ -40,6 +40,13 @@ commit-id::
<commit-id>['\t'<filename-as-in--w>] <commit-id>['\t'<filename-as-in--w>]
--packfile=<hash>::
Instead of a commit id on the command line (which is not expected in
this case), 'git http-fetch' fetches the packfile directly at the given
URL and uses index-pack to generate corresponding .idx and .keep files.
The hash is used to determine the name of the temporary file and is
arbitrary. The output of index-pack is printed to stdout.
--recover:: --recover::
Verify that everything reachable from target is fetched. Used after Verify that everything reachable from target is fetched. Used after
an earlier fetch is interrupted. an earlier fetch is interrupted.
......
...@@ -93,6 +93,14 @@ OPTIONS ...@@ -93,6 +93,14 @@ OPTIONS
--max-input-size=<size>:: --max-input-size=<size>::
Die, if the pack is larger than <size>. Die, if the pack is larger than <size>.
--object-format=<hash-algorithm>::
Specify the given object format (hash algorithm) for the pack. The valid
values are 'sha1' and (if enabled) 'sha256'. The default is the algorithm for
the current repository (set by `extensions.objectFormat`), or 'sha1' if no
value is set or outside a repository.
+
This option cannot be used with --stdin.
NOTES NOTES
----- -----
......
...@@ -11,6 +11,7 @@ SYNOPSIS ...@@ -11,6 +11,7 @@ SYNOPSIS
[verse] [verse]
'git init' [-q | --quiet] [--bare] [--template=<template_directory>] 'git init' [-q | --quiet] [--bare] [--template=<template_directory>]
[--separate-git-dir <git dir>] [--object-format=<format>] [--separate-git-dir <git dir>] [--object-format=<format>]
[-b <branch-name> | --initial-branch=<branch-name>]
[--shared[=<permissions>]] [directory] [--shared[=<permissions>]] [directory]
...@@ -67,6 +68,12 @@ repository. ...@@ -67,6 +68,12 @@ repository.
+ +
If this is reinitialization, the repository will be moved to the specified path. If this is reinitialization, the repository will be moved to the specified path.
-b <branch-name::
--initial-branch=<branch-name>::
Use the specified name for the initial branch in the newly created repository.
If not specified, fall back to the default name: `master`.
--shared[=(false|true|umask|group|all|world|everybody|0xxx)]:: --shared[=(false|true|umask|group|all|world|everybody|0xxx)]::
Specify that the Git repository is to be shared amongst several users. This Specify that the Git repository is to be shared amongst several users. This
......
...@@ -101,9 +101,9 @@ f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1 ...@@ -101,9 +101,9 @@ f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3
c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
0918385dbd9656cab0d1d81ba7453d49bbc16250 refs/tags/junio-gpg-pub 0918385dbd9656cab0d1d81ba7453d49bbc16250 refs/tags/junio-gpg-pub
$ git ls-remote http://www.kernel.org/pub/scm/git/git.git master pu rc $ git ls-remote http://www.kernel.org/pub/scm/git/git.git master seen rc
5fe978a5381f1fbad26a80e682ddd2a401966740 refs/heads/master 5fe978a5381f1fbad26a80e682ddd2a401966740 refs/heads/master
c781a84b5204fb294c9ccc79f8b3baceeb32c061 refs/heads/pu c781a84b5204fb294c9ccc79f8b3baceeb32c061 refs/heads/seen
$ git remote add korg http://www.kernel.org/pub/scm/git/git.git $ git remote add korg http://www.kernel.org/pub/scm/git/git.git
$ git ls-remote --tags korg v\* $ git ls-remote --tags korg v\*
d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99 d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
......
...@@ -259,7 +259,7 @@ See also INCOMPATIBLE OPTIONS below. ...@@ -259,7 +259,7 @@ See also INCOMPATIBLE OPTIONS below.
unchanged as a result. If a temporary stash entry was created unchanged as a result. If a temporary stash entry was created
using --autostash, it will be saved to the stash list. using --autostash, it will be saved to the stash list.
--apply: --apply::
Use applying strategies to rebase (calling `git-am` Use applying strategies to rebase (calling `git-am`
internally). This option may become a no-op in the future internally). This option may become a no-op in the future
once the merge backend handles everything the apply one does. once the merge backend handles everything the apply one does.
......
...@@ -10,7 +10,7 @@ SYNOPSIS ...@@ -10,7 +10,7 @@ SYNOPSIS
-------- --------
[verse] [verse]
'git remote' [-v | --verbose] 'git remote' [-v | --verbose]
'git remote add' [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=(fetch|push)] <name> <url> 'git remote add' [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>] <name> <url>
'git remote rename' <old> <new> 'git remote rename' <old> <new>
'git remote remove' <name> 'git remote remove' <name>
'git remote set-head' <name> (-a | --auto | -d | --delete | <branch>) 'git remote set-head' <name> (-a | --auto | -d | --delete | <branch>)
...@@ -35,7 +35,7 @@ OPTIONS ...@@ -35,7 +35,7 @@ OPTIONS
-v:: -v::
--verbose:: --verbose::
Be a little more verbose and show remote url after name. Be a little more verbose and show remote url after name.
NOTE: This must be placed between `remote` and subcommand. NOTE: This must be placed between `remote` and `subcommand`.
COMMANDS COMMANDS
...@@ -46,7 +46,7 @@ subcommands are available to perform operations on the remotes. ...@@ -46,7 +46,7 @@ subcommands are available to perform operations on the remotes.
'add':: 'add'::
Add a remote named <name> for the repository at Adds a remote named <name> for the repository at
<url>. The command `git fetch <name>` can then be used to create and <url>. The command `git fetch <name>` can then be used to create and
update remote-tracking branches <name>/<branch>. update remote-tracking branches <name>/<branch>.
+ +
...@@ -109,13 +109,13 @@ With `-d` or `--delete`, the symbolic ref `refs/remotes/<name>/HEAD` is deleted. ...@@ -109,13 +109,13 @@ With `-d` or `--delete`, the symbolic ref `refs/remotes/<name>/HEAD` is deleted.
+ +
With `-a` or `--auto`, the remote is queried to determine its `HEAD`, then the With `-a` or `--auto`, the remote is queried to determine its `HEAD`, then the
symbolic-ref `refs/remotes/<name>/HEAD` is set to the same branch. e.g., if the remote symbolic-ref `refs/remotes/<name>/HEAD` is set to the same branch. e.g., if the remote
`HEAD` is pointed at `next`, `git remote set-head origin -a` will set `HEAD` is pointed at `next`, "`git remote set-head origin -a`" will set
the symbolic-ref `refs/remotes/origin/HEAD` to `refs/remotes/origin/next`. This will the symbolic-ref `refs/remotes/origin/HEAD` to `refs/remotes/origin/next`. This will
only work if `refs/remotes/origin/next` already exists; if not it must be only work if `refs/remotes/origin/next` already exists; if not it must be
fetched first. fetched first.
+ +
Use `<branch>` to set the symbolic-ref `refs/remotes/<name>/HEAD` explicitly. e.g., `git Use `<branch>` to set the symbolic-ref `refs/remotes/<name>/HEAD` explicitly. e.g., "git
remote set-head origin master` will set the symbolic-ref `refs/remotes/origin/HEAD` to remote set-head origin master" will set the symbolic-ref `refs/remotes/origin/HEAD` to
`refs/remotes/origin/master`. This will only work if `refs/remotes/origin/master`. This will only work if
`refs/remotes/origin/master` already exists; if not it must be fetched first. `refs/remotes/origin/master` already exists; if not it must be fetched first.
+ +
...@@ -127,7 +127,7 @@ This can be used to track a subset of the available remote branches ...@@ -127,7 +127,7 @@ This can be used to track a subset of the available remote branches
after the initial setup for a remote. after the initial setup for a remote.
+ +
The named branches will be interpreted as if specified with the The named branches will be interpreted as if specified with the
`-t` option on the `git remote add` command line. `-t` option on the 'git remote add' command line.
+ +
With `--add`, instead of replacing the list of currently tracked With `--add`, instead of replacing the list of currently tracked
branches, adds to that list. branches, adds to that list.
...@@ -181,13 +181,13 @@ fetch --prune <name>`, except that no new references will be fetched. ...@@ -181,13 +181,13 @@ fetch --prune <name>`, except that no new references will be fetched.
See the PRUNING section of linkgit:git-fetch[1] for what it'll prune See the PRUNING section of linkgit:git-fetch[1] for what it'll prune
depending on various configuration. depending on various configuration.
+ +
With `--dry-run` option, report what branches would be pruned, but do not With `--dry-run` option, report what branches will be pruned, but do not
actually prune them. actually prune them.
'update':: 'update'::
Fetch updates for remotes or remote groups in the repository as defined by Fetch updates for remotes or remote groups in the repository as defined by
`remotes.<group>`. If neither group nor remote is specified on the command line, remotes.<group>. If neither group nor remote is specified on the command line,
the configuration parameter remotes.default will be used; if the configuration parameter remotes.default will be used; if
remotes.default is not defined, all remotes which do not have the remotes.default is not defined, all remotes which do not have the
configuration parameter remote.<name>.skipDefaultUpdate set to true will configuration parameter remote.<name>.skipDefaultUpdate set to true will
......
...@@ -9,7 +9,7 @@ git-show-index - Show packed archive index ...@@ -9,7 +9,7 @@ git-show-index - Show packed archive index
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'git show-index' 'git show-index' [--object-format=<hash-algorithm>]
DESCRIPTION DESCRIPTION
...@@ -36,6 +36,15 @@ Note that you can get more information on a packfile by calling ...@@ -36,6 +36,15 @@ Note that you can get more information on a packfile by calling
linkgit:git-verify-pack[1]. However, as this command considers only the linkgit:git-verify-pack[1]. However, as this command considers only the
index file itself, it's both faster and more flexible. index file itself, it's both faster and more flexible.
OPTIONS
-------
--object-format=<hash-algorithm>::
Specify the given object format (hash algorithm) for the index file. The
valid values are 'sha1' and (if enabled) 'sha256'. The default is the
algorithm for the current repository (set by `extensions.objectFormat`), or
'sha1' if no value is set or outside a repository..
GIT GIT
--- ---
Part of the linkgit:git[1] suite Part of the linkgit:git[1] suite
...@@ -183,7 +183,7 @@ set-branch (-d|--default) [--] <path>:: ...@@ -183,7 +183,7 @@ set-branch (-d|--default) [--] <path>::
Sets the default remote tracking branch for the submodule. The Sets the default remote tracking branch for the submodule. The
`--branch` option allows the remote branch to be specified. The `--branch` option allows the remote branch to be specified. The
`--default` option removes the submodule.<name>.branch configuration `--default` option removes the submodule.<name>.branch configuration
key, which causes the tracking branch to default to 'master'. key, which causes the tracking branch to default to the remote 'HEAD'.
set-url [--] <path> <newurl>:: set-url [--] <path> <newurl>::
Sets the URL of the specified submodule to <newurl>. Then, it will Sets the URL of the specified submodule to <newurl>. Then, it will
...@@ -284,7 +284,7 @@ OPTIONS ...@@ -284,7 +284,7 @@ OPTIONS
`.gitmodules` for `update --remote`. A special value of `.` is used to `.gitmodules` for `update --remote`. A special value of `.` is used to
indicate that the name of the branch in the submodule should be the indicate that the name of the branch in the submodule should be the
same name as the current branch in the current repository. If the same name as the current branch in the current repository. If the
option is not specified, it defaults to 'master'. option is not specified, it defaults to the remote 'HEAD'.
-f:: -f::
--force:: --force::
...@@ -322,10 +322,10 @@ OPTIONS ...@@ -322,10 +322,10 @@ OPTIONS
the superproject's recorded SHA-1 to update the submodule, use the the superproject's recorded SHA-1 to update the submodule, use the
status of the submodule's remote-tracking branch. The remote used status of the submodule's remote-tracking branch. The remote used
is branch's remote (`branch.<name>.remote`), defaulting to `origin`. is branch's remote (`branch.<name>.remote`), defaulting to `origin`.
The remote branch used defaults to `master`, but the branch name may The remote branch used defaults to the remote `HEAD`, but the branch
be overridden by setting the `submodule.<name>.branch` option in name may be overridden by setting the `submodule.<name>.branch`
either `.gitmodules` or `.git/config` (with `.git/config` taking option in either `.gitmodules` or `.git/config` (with `.git/config`
precedence). taking precedence).
+ +
This works for any of the supported update procedures (`--checkout`, This works for any of the supported update procedures (`--checkout`,
`--rebase`, etc.). The only change is the source of the target SHA-1. `--rebase`, etc.). The only change is the source of the target SHA-1.
......
...@@ -126,7 +126,9 @@ OPTIONS ...@@ -126,7 +126,9 @@ OPTIONS
locked working tree path, specify `--force` twice. locked working tree path, specify `--force` twice.
+ +
`move` refuses to move a locked working tree unless `--force` is specified `move` refuses to move a locked working tree unless `--force` is specified
twice. twice. If the destination is already assigned to some other working tree but is
missing (for instance, if `<new-path>` was deleted manually), then `--force`
allows the move to proceed; use --force twice if the destination is locked.
+ +
`remove` refuses to remove an unclean working tree unless `--force` is used. `remove` refuses to remove an unclean working tree unless `--force` is used.
To remove a locked working tree, specify `--force` twice. To remove a locked working tree, specify `--force` twice.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment