diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/chapters/import.sgml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/chapters/import.sgml b/docs/chapters/import.sgml index c9893178..c4a5f1fc 100644 --- a/docs/chapters/import.sgml +++ b/docs/chapters/import.sgml @@ -142,6 +142,13 @@ EOF mergeWithUpstream was set for svn-buildpackage), you can create an empty upstream branch with the following commands: <screen> + <command>git checkout</command> <option>--orphan</option> <replaceable>upstream</replaceable> + <command>git rm</command> <option>-rf</option> <replaceable>.</replaceable> + <command>git commit</command> <option>--allow-empty</option> <option>-m</option> <replaceable>'Initial upstream branch.'</replaceable> + <command>git checkout</command> <option>-f</option> <replaceable>master</replaceable> +</screen> + With Git versions lower than 1.7.2.3, the commands are slightly more complicated: +<screen> <command>git symbolic-ref</command> <replaceable>HEAD</replaceable> <replaceable>refs/heads/upstream</replaceable> <command>git rm</command> <option>--cached</option> <option>-r</option> <replaceable>.</replaceable> <command>git commit</command> <option>--allow-empty</option> <option>-m</option> <replaceable>'Initial upstream branch.'</replaceable> |