summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 04e50e9)
raw | patch | inline | side by side (parent: 04e50e9)
author | J. Bruce Fields <bfields@citi.umich.edu> | |
Mon, 29 Jan 2007 04:50:22 +0000 (23:50 -0500) | ||
committer | J. Bruce Fields <bfields@citi.umich.edu> | |
Mon, 29 Jan 2007 04:50:22 +0000 (23:50 -0500) |
Looks like we're going to allow git-config as the preferred alias to
git-repo-config, so let's document that instead.
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
git-repo-config, so let's document that instead.
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Documentation/user-manual.txt | patch | blob | history |
index 663fe9b8a3bc0130c9579596fecf7ceb1a471e62..3e367a0adb039e915dec0555251a40d96a9a3feb 100644 (file)
-------------------------------------------------
See the descriptions of the branch.<name>.remote and
-branch.<name>.merge options in gitlink:git-repo-config[1] to learn
+branch.<name>.merge options in gitlink:git-config[1] to learn
how to control these defaults depending on the current branch.
In addition to saving you keystrokes, "git pull" also helps you by
-------------------------------------------------
See the explanations of the remote.<name>.url, branch.<name>.remote,
-and remote.<name>.push options in gitlink:git-repo-config[1] for
+and remote.<name>.push options in gitlink:git-config[1] for
details.
Setting up a shared repository
We saw above that "origin" is just a shortcut to refer to the
repository which you originally cloned from. This information is
stored in git configuration variables, which you can see using
-gitlink:git-repo-config[1]:
+gitlink:git-config[1]:
-------------------------------------------------
-$ git-repo-config -l
+$ git config -l
core.repositoryformatversion=0
core.filemode=true
core.logallrefupdates=true
after
-------------------------------------------------
-$ git repo-config remote.example.url git://example.com/proj.git
+$ git config remote.example.url git://example.com/proj.git
-------------------------------------------------
then the following two commands will do the same thing:
Even better, if you add one more option:
-------------------------------------------------
-$ git repo-config remote.example.fetch master:refs/remotes/example/master
+$ git config remote.example.fetch master:refs/remotes/example/master
-------------------------------------------------
then the following commands will all do the same thing:
You can also add a "+" to force the update each time:
-------------------------------------------------
-$ git repo-config remote.example.fetch +master:ref/remotes/example/master
+$ git config remote.example.fetch +master:ref/remotes/example/master
-------------------------------------------------
Don't do this unless you're sure you won't mind "git fetch" possibly
Also note that all of the above configuration can be performed by
directly editing the file .git/config instead of using
-gitlink:git-repo-config[1].
+gitlink:git-config[1].
-See gitlink:git-repo-config[1] for more details on the configuration
+See gitlink:git-config[1] for more details on the configuration
options mentioned above.