瀏覽代碼

Document push in tutorial.

Jelmer Vernooij 8 年之前
父節點
當前提交
3c31866bb3
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      docs/tutorial/porcelain.txt

+ 6 - 0
docs/tutorial/porcelain.txt

@@ -32,3 +32,9 @@ Commit changes
   >>> open("testrepo/testfile", "w").write("data")
   >>> porcelain.add(r, "testfile")
   >>> porcelain.commit(r, b"A sample commit")
+
+Push changes
+------------
+
+  >>> tr = porcelain.init("targetrepo")
+  >>> r = porcelain.push("testrepo", "targetrepo", "master")