You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`GIT_CEILING_DIRECTORIES`* controls the behavior of searching for a `.git` directory.
39
-
If you access directories that are slow to load (such as those on a tape drive, or across a slow network connection), you may want to have Git stop trying earlier than it might otherwise, especially if Git is invoked when building your shell prompt.
*`GIT_ALTERNATE_OBJECT_DIRECTORIES`* is a colon-separated list (formatted like `/dir/one:/dir/two:…`) which tells Git where to check for objects if they aren't in `GIT_OBJECT_DIRECTORY`.
49
-
If you happen to have a lot of projects with large files that have the exact same contents, this can be used to avoid storing too many copies of them.
A ``pathspec'' refers to how you specify paths to things in Git, including the use of wildcards.
55
-
These are used in the `.gitignore` file, but also on the command-line (`git add *.c`).
54
+
所谓 ``pathspec'' 是指你在 Git 中如何指定路径, 包括通配符的使用。
55
+
它们会在 `.gitignore` 文件中用到,命令行里也会用到 (`git add *.c`)。
56
56
57
-
*`GIT_GLOB_PATHSPECS` and `GIT_NOGLOB_PATHSPECS`* control the default behavior of wildcards in pathspecs.
58
-
If `GIT_GLOB_PATHSPECS` is set to 1, wildcard characters act as wildcards (which is the default); if `GIT_NOGLOB_PATHSPECS` is set to 1, wildcard characters only match themselves, meaning something like `*.c` would only match a file _named_ ``*.c'', rather than any file whose name ends with `.c`.
59
-
You can override this in individual cases by starting the pathspec with `:(glob)` or `:(literal)`, as in `:(glob)*.c`.
57
+
*`GIT_GLOB_PATHSPECS` and `GIT_NOGLOB_PATHSPECS`* 控制通配符在路径规则中的默认行为。
*`GIT_ICASE_PATHSPECS`* sets all pathspecs to work in a case-insensitive manner.
63
+
*`GIT_ICASE_PATHSPECS`* 让所有的路径规格忽略大小写。
64
64
65
65
66
-
==== Commiting
66
+
==== 提交
67
67
68
-
The final creation of a Git commit object is usually done by `git-commit-tree`, which uses these environment variables as its primary source of information, falling back to configuration values only if these aren't present.
*`GIT_SSL_NO_VERIFY`* tells Git not to verify SSL certificates.
92
-
This can sometimes be necessary if you're using a self-signed certificate to serve Git repositories over HTTPS, or you're in the middle of setting up a Git server but haven't installed a full certificate yet.
If the data rate of an HTTP operation is lower than *`GIT_HTTP_LOW_SPEED_LIMIT`* bytes per second for longer than *`GIT_HTTP_LOW_SPEED_TIME`* seconds, Git will abort that operation.
96
-
These values override the `http.lowSpeedLimit` and `http.lowSpeedTime` configuration values.
*`GIT_TRACE_SETUP`* shows information about what Git is discovering about the repository and environment it's interacting with.
201
+
*`GIT_TRACE_SETUP`* 显示 Git 发现的关于版本库和交互环境的信息
202
202
203
203
[source,console]
204
204
----
@@ -212,26 +212,26 @@ Your branch is up-to-date with 'origin/master'.
212
212
nothing to commit, working directory clean
213
213
----
214
214
215
-
==== Miscellaneous
215
+
==== 其它
216
216
217
-
*`GIT_SSH`*, if specified, is a program that is invoked instead of `ssh` when Git tries to connect to an SSH host.
218
-
It is invoked like `$GIT_SSH [username@]host [-p <port>] <command>`.
219
-
Note that this isn't the easiest way to customize how `ssh` is invoked; it won't support extra command-line parameters, so you'd have to write a wrapper script and set `GIT_SSH` to point to it.
220
-
It's probably easier just to use the `~/.ssh/config` file for that.
*`GIT_ASKPASS`* is an override for the `core.askpass` configuration value.
223
-
This is the program invoked whenever Git needs to ask the user for credentials, which can expect a text prompt as a command-line argument, and should return the answer on `stdout`.
224
-
(See <<_credential_caching>> for more on this subsystem.)
*`GIT_NAMESPACE`* controls access to namespaced refs, and is equivalent to the `--namespace` flag.
227
-
This is mostly useful on the server side, where you may want to store multiple forks of a single repository in one repository, only keeping the refs separate.
0 commit comments