diff options
author | Junio C Hamano <junkio@cox.net> | 2007-02-28 14:18:57 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-28 14:18:57 -0800 |
commit | 1db8b60b2a6ef0cc0f7cc7d0783b7cda2ce894ca (patch) | |
tree | 1d5433fb0c0a74e1478962daaba65b2ced03a43e /Documentation/git-remote.txt | |
parent | d0d8e14d1bad5f5ad3fb27a6ac819ff4e7006f03 (diff) | |
parent | a1367d1219439fef8e82e546cbe742910231e5b3 (diff) | |
download | git-1db8b60b2a6ef0cc0f7cc7d0783b7cda2ce894ca.tar.gz |
Merge branch 'maint'
* maint:
Start preparing Release Notes for 1.5.0.3
Documentation: git-remote add [-t <branch>] [-m <branch>] [-f] name url
Include config.mak in doc/Makefile
git.el: Set the default commit coding system from the repository config.
git-archimport: support empty summaries, put summary on a single line.
http-push.c::lock_remote(): validate all remote refs.
git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs.
Diffstat (limited to 'Documentation/git-remote.txt')
-rw-r--r-- | Documentation/git-remote.txt | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt index 266faade31..a9fb6a9a5e 100644 --- a/Documentation/git-remote.txt +++ b/Documentation/git-remote.txt @@ -10,7 +10,7 @@ SYNOPSIS -------- [verse] 'git-remote' -'git-remote' add <name> <url> +'git-remote' add [-t <branch>] [-m <branch>] [-f] <name> <url> 'git-remote' show <name> 'git-remote' prune <name> 'git-remote' update [group] @@ -77,8 +77,8 @@ gitlink:git-config[1]). Examples -------- -Add a new remote, fetch, and check out a branch from it: - +* Add a new remote, fetch, and check out a branch from it ++ ------------ $ git remote origin @@ -98,6 +98,17 @@ $ git checkout -b nfs linux-nfs/master ... ------------ +* Imitate 'git clone' but track only selected branches ++ +------------ +$ mkdir project.git +$ cd project.git +$ git init +$ git remote add -f -t master -m master origin git://example.com/git.git/ +$ git merge origin +------------ + + See Also -------- gitlink:git-fetch[1] |