From: Petr Baudis Date: Tue, 9 Sep 2008 22:11:47 +0000 (+0200) Subject: README: Add synopsis for working with remotes X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=3de9840b7e29d711917d01f8eb3a18e78e8d6d9d README: Add synopsis for working with remotes --- diff --git a/README b/README index 8299027..fd88504 100644 --- a/README +++ b/README @@ -184,6 +184,24 @@ SYNOPSIS tg: Updating base with t/gitweb/nifty-links changes... tg: Updating t/whatever against new base... + ## Clone a TopGit-controlled repository + $ git clone URL repo + $ cd repo + $ tg remote --populate origin + ... + $ git fetch + $ tg update + + ## Add a TopGit remote to a repository and push to it + $ git remote add foo URL + $ tg remote foo + $ git push foo + + ## Update from a non-default TopGit remote + $ git fetch foo + $ tg -r foo summary + $ tg -r foo update + USAGE -----