@@ -2125,8 +2125,37 @@ Allowing web browsing of a repository
2125
2125
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2126
2126
2127
2127
The gitweb cgi script provides users an easy way to browse your
2128
- project's files and history without having to install Git; see the file
2129
- gitweb/INSTALL in the Git source tree for instructions on setting it up.
2128
+ project's revisions, file contents and logs without having to install
2129
+ Git. Features like RSS/Atom feeds and blame/annotation details may
2130
+ optionally be enabled.
2131
+
2132
+ The linkgit:git-instaweb[1] command provides a simple way to start
2133
+ browsing the repository using gitweb. The default server when using
2134
+ instaweb is lighttpd.
2135
+
2136
+ See the file gitweb/INSTALL in the Git source tree and
2137
+ linkgit:gitweb[1] for instructions on details setting up a permament
2138
+ installation with a CGI or Perl capable server.
2139
+
2140
+ [[how-to-get-a-git-repository-with-minimal-history]]
2141
+ How to get a Git repository with minimal history
2142
+ ------------------------------------------------
2143
+
2144
+ A <<def_shallow_clone,shallow clone>>, with its truncated
2145
+ history, is useful when one is interested only in recent history
2146
+ of a project and getting full history from the upstream is
2147
+ expensive.
2148
+
2149
+ A <<def_shallow_clone,shallow clone>> is created by specifying
2150
+ the linkgit:git-clone[1] `--depth` switch. The depth can later be
2151
+ changed with the linkgit:git-fetch[1] `--depth` switch, or full
2152
+ history restored with `--unshallow`.
2153
+
2154
+ Merging inside a <<def_shallow_clone,shallow clone>> will work as long
2155
+ as a merge base is in the recent history.
2156
+ Otherwise, it will be like merging unrelated histories and may
2157
+ have to result in huge conflicts. This limitation may make such
2158
+ a repository unsuitable to be used in merge based workflows.
2130
2159
2131
2160
[[sharing-development-examples]]
2132
2161
Examples
@@ -4636,23 +4665,15 @@ Scan email archives for other stuff left out
4636
4665
Scan man pages to see if any assume more background than this manual
4637
4666
provides.
4638
4667
4639
- Simplify beginning by suggesting disconnected head instead of
4640
- temporary branch creation?
4641
-
4642
4668
Add more good examples. Entire sections of just cookbook examples
4643
4669
might be a good idea; maybe make an "advanced examples" section a
4644
4670
standard end-of-chapter section?
4645
4671
4646
4672
Include cross-references to the glossary, where appropriate.
4647
4673
4648
- Document shallow clones? See draft 1.5.0 release notes for some
4649
- documentation.
4650
-
4651
4674
Add a section on working with other version control systems, including
4652
4675
CVS, Subversion, and just imports of series of release tarballs.
4653
4676
4654
- More details on gitweb?
4655
-
4656
4677
Write a chapter on using plumbing and writing scripts.
4657
4678
4658
4679
Alternates, clone -reference, etc.
0 commit comments