gbp-create-remote-repo.sgml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <refentry id="man.gbp.create.remote.repo">
  2. <refentryinfo>
  3. <address>
  4. &dhemail;
  5. </address>
  6. <author>
  7. &dhfirstname;
  8. &dhsurname;
  9. </author>
  10. </refentryinfo>
  11. <refmeta>
  12. <refentrytitle>gbp-create-remote-repo</refentrytitle>
  13. &dhsection;
  14. </refmeta>
  15. <refnamediv>
  16. <refname>gbp-create-remote-repo</refname>
  17. <refpurpose>Create remote repositories</refpurpose>
  18. </refnamediv>
  19. <refsynopsisdiv>
  20. <cmdsynopsis>
  21. &gbp-create-remote-repo;
  22. &man.common.options.synopsis;
  23. <arg><option>--remote-url-pattern=</option><replaceable>url-pattern</replaceable></arg>
  24. <arg><option>--remote-name=</option><replaceable>name</replaceable></arg>
  25. <arg><option>--template-dir=</option><replaceable>directory</replaceable></arg>
  26. <arg><option>--remote-config=</option><replaceable>config</replaceable></arg>
  27. <arg><option>--[no-]pristine-tar</option></arg>
  28. <arg><option>--debian-branch=</option><replaceable>branch_name</replaceable></arg>
  29. <arg><option>--upstream-branch=</option><replaceable>branch_name</replaceable></arg>
  30. <arg><option>--[no-]track</option></arg>
  31. </cmdsynopsis>
  32. </refsynopsisdiv>
  33. <refsect1>
  34. <title>DESCRIPTION</title>
  35. <para>
  36. &gbp-create-remote-repo; creates a repository at a remote location via ssh
  37. and pushes the local repository into it. It then sets up remote branch
  38. tracking so you can use &gbp-pull; to update your repository from there.
  39. </para>
  40. <para>
  41. Before performing any action on the remote location, it will print the
  42. remote URL and ask for confirmation.
  43. </para>
  44. <para>
  45. Note: By default, the remote repositories are created in the <systemitem
  46. class="groupname">collab-maint</systemitem> repository on <systemitem
  47. class="systemname">git.debian.org</systemitem>.
  48. </para>
  49. </refsect1>
  50. <refsect1>
  51. <title>OPTIONS</title>
  52. <variablelist>
  53. &man.common.options.description;
  54. <varlistentry>
  55. <term><option>--remote-url-pattern</option>=<replaceable>pattern</replaceable>
  56. </term>
  57. <listitem>
  58. <para>Where to create the remote repository. The part
  59. <replaceable>%(pkg)s</replaceable> will be replaced by the package name.
  60. </para>
  61. </listitem>
  62. </varlistentry>
  63. <varlistentry>
  64. <term><option>--remote-name</option>=<replaceable>name</replaceable>
  65. </term>
  66. <listitem>
  67. <para>What name git will use when referring to that repository, e.g.
  68. 'origin'.</para>
  69. </listitem>
  70. </varlistentry>
  71. <varlistentry>
  72. <term><option>--template-dir</option>=<replaceable>directory</replaceable>
  73. </term>
  74. <listitem>
  75. <para>Template directory to pass to <command>git init</command> on the remote
  76. side. This can be used to customize the remote repository, e.g. to set up hooks.
  77. </para>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry>
  81. <term><option>--remote-config</option>=<replaceable>config</replaceable>
  82. </term>
  83. <listitem>
  84. <para>Name of a config file section in <filename>gbp.conf</filename>
  85. that specifies the above parameters. See <xref linkend="man.gbp.conf"/>
  86. manpage for details.
  87. </para>
  88. </listitem>
  89. </varlistentry>
  90. <varlistentry>
  91. <term><option>--debian-branch</option>=<replaceable>branch_name</replaceable>
  92. </term>
  93. <listitem>
  94. <para>The branch in the &git; repository the &debian; package is being
  95. developed on, default is <replaceable>master</replaceable>.</para>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry>
  99. <term><option>--upstream-branch</option>=<replaceable>branch_name</replaceable>
  100. </term>
  101. <listitem>
  102. <para>The branch in the &git; repository the upstream sources are put
  103. onto. Default is <replaceable>upstream</replaceable>.</para>
  104. </listitem>
  105. </varlistentry>
  106. <varlistentry>
  107. <term><option>--pristine-tar</option>
  108. </term>
  109. <listitem>
  110. <para>Whether to push the pristine tar branch.</para>
  111. </listitem>
  112. </varlistentry>
  113. <varlistentry>
  114. <term><option>--[no-]track</option>
  115. </term>
  116. <listitem>
  117. <para>Whether to set up branch tracking for the debian, upstream and
  118. pristine-tar branches.</para>
  119. </listitem>
  120. </varlistentry>
  121. </variablelist>
  122. </refsect1>
  123. <refsect1>
  124. &man.gbp.config-files;
  125. </refsect1>
  126. <refsect1>
  127. <title>SEE ALSO</title>
  128. <para>
  129. <xref linkend="man.gbp.buildpackage"/>,
  130. <xref linkend="man.gbp.pull"/>,
  131. <xref linkend="man.gbp.conf"/>
  132. </para>
  133. </refsect1>
  134. <refsect1>
  135. <title>AUTHOR</title>
  136. <para>&dhusername; &dhemail;</para>
  137. </refsect1>
  138. </refentry>
  139. <!-- LocalWords: ssh
  140. -->