This file is indexed.

/usr/share/bibledit-gtk/site/gtk/tutorials/collaboration/repository-initialization.html is in bibledit-gtk-data 4.9-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link href="../../../bibledit.css" rel="stylesheet" type="text/css" /><!-- 

Copyright (©) 2003-2011 Teus Benschop and Contributors to the Wiki.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts.  A copy of the license is included in the section entitled "GNU
Free Documentation License" in the file FDL.

-->
    <title></title>
  </head>
  <body>
    <div id="menu">
      <ul>
        <li>
          <a href="../../../home.html">1 Bibledit</a>
        </li>
        <li>
          <a href="../collaboration.html">Collaboration</a>
        </li>
        <li style="list-style: none; display: inline">
          <hr />
        </li>
        <li>
          <a href="introduction-to-collaboration.html">Introduction to Collaboration</a>
        </li>
        <li>Repository initialization
        </li>
        <li>
          <a href="reposetup.html">Repository setup</a>
        </li>
      </ul>
    </div>
    <div id="content">
      <h1>
        Repository initialization
      </h1>
      <p>
        Note: Newer versions of git, and Bibledit-Gtk version 4.2 and higher, no longer need what is written below.
      </p>
      <p>
        In this tutorial you are going to see whether the repository can be cloned, and if not, then to put some data into it, then try to clone it again to see how it now goes.
      </p>
      <p>
        Open a terminal, and issue the commands as given.
      </p>
      <pre>
cd
</pre>
      <p>
        In the tutorial about <a href="../../../gtk/tutorials/collaboration/reposetup.html">setting up the repository</a>, the systems administrator had given the URL of the repository that was created. In the current tutorial we assume a URL of "file:///media/usbstick/repository". Of course others are possible, depending on what type of repository you have and where it resides. For example "ssh://user@repo2.git.sourceforge.net/gitroot/repo2/repo2".
      </p>You need to put something into the repository. It does not matter what, anything will do. Let's proceed and put an empty file into the repository. Issue the commands as given:
      <pre>
cd
</pre>
      <pre>
mkdir repository
</pre>
      <pre>
cd repository
</pre>
      <pre>
git init
</pre>
      <p>
        It will say that an empty Git repository was initialized.
      </p>
      <pre>
touch file
</pre>
      <pre>
git add file
</pre>
      <pre>
git commit -a -m init
</pre>
      <p>
        It will say that an initial commit was created.
      </p>
      <pre>
git push --all file:///media/usbstick/repository
</pre>
      <pre>
<span>    </span>or for secure network repository:
</pre>
      <pre>
<span>    </span>git push --all ssh://sforgeuser@.repo2.git.sourceforge.net/gitroot/repo2/repo2
</pre>
      <p>
        It will give some information, which shows that data was written to the repository. No errors should occur. Example:
      </p>
      <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
            <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
              <p>
                <span style="font-style:normal">Counting objects: 3, done.<br />
                Writing objects: 100% (3/3), 198 bytes, done.<br />
                Total 3 (delta 0), reused 0 (delta 0)<br />
                To ssh://warpok@tsederhana.git.sourceforge.net/gitroot/tsederhana/tsederhana<br />
                &nbsp;* [new branch] &nbsp; &nbsp; &nbsp;master -&gt; master</span>
              </p>
            </blockquote>
          </blockquote>
        </blockquote>
      </blockquote><br />
      <p>
        Clean out the temporal directory:
      </p>
      <pre>
cd
</pre>
      <pre>
rm -rf repository
</pre>
      <p>
        Now try to clone the repository:
      </p>
      <pre>
git clone file:///media/usbstick/repository
</pre>
      <pre>
<span>    </span>or for secure network repostory:
</pre>
      <pre>
<span>    </span>git clone ssh://sforgeuser@repo2.git.sourceforge.net/gitroot/repo2/repo2
</pre>
      <p>
        It should say that an empty Git repository was created, give some more information, and show that object were received. It is does this, and there are no errors, then everything is fine. Your repository has been initialized. Example:
      </p>
      <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
            <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
              <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
                <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
                  <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
                    <p>
                      <span style="font-style:normal">Initialized empty Git repository in /home/oreo/tsederhana/.git/<br />
                      remote: Counting objects: 3, done.<br />
                      remote: Total 3 (delta 0), reused 0 (delta 0)<br />
                      Receiving objects: 100% (3/3), done.</span>
                    </p>
                  </blockquote>
                </blockquote>
              </blockquote>
            </blockquote>
          </blockquote>
        </blockquote>
      </blockquote>
    </div>
  </body>
</html>