Re: git-fetch remote tag to local branch fails

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Santi Béjar
Date: Tuesday, June 24, 2008 - 9:11 am

On Tue, Jun 24, 2008 at 17:31, Klas Lindberg <klas.lindberg@gmail.com> wrote:

Maybe you should be using the plumbing commands.


What are the "other trees"?

Do you mean this?

1. You have a repository with different branches as:
  master
  tree1
  tree2
  ..

2. You want /path/to/tree1 to always checkout tree1
  and the same for treeN

Then

3. In /path/to/treeN/.. you do:
$ git clone /path/to/repo treeN
$ git checkout -b treeN origin/treeN

4. To keep uptodate:
$ git pull

5. The branches for the other trees are always uptodate in origin/*.


Sure. So you have to choose those that don't have these "side
effects", you have plenty of them, mainly in the low-level, plumbing
commands.


Well, if you touch the current branch, for sure, you want to update
the working tree.

Maybe you want to keep your local branches up to date with respect
their tracking branch?


I don't see the point updating a branch with a tag, but you can make a
tool to update a branch with a tag, see for example
contrib/examples/git-fetch.sh.

Santi
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-fetch remote tag to local branch fails, Klas Lindberg, (Tue Jun 24, 5:17 am)
Re: git-fetch remote tag to local branch fails, Santi Béjar, (Tue Jun 24, 6:38 am)
Re: git-fetch remote tag to local branch fails, Klas Lindberg, (Tue Jun 24, 7:01 am)
Re: git-fetch remote tag to local branch fails, Santi Béjar, (Tue Jun 24, 7:27 am)
Re: git-fetch remote tag to local branch fails, Michael J Gruber, (Tue Jun 24, 7:57 am)
Re: git-fetch remote tag to local branch fails, Klas Lindberg, (Tue Jun 24, 8:31 am)
Re: git-fetch remote tag to local branch fails, Klas Lindberg, (Tue Jun 24, 8:36 am)
Re: git-fetch remote tag to local branch fails, Santi Béjar, (Tue Jun 24, 9:11 am)
Re: git-fetch remote tag to local branch fails, Klas Lindberg, (Wed Jun 25, 1:50 am)
Re: git-fetch remote tag to local branch fails, Jakub Narebski, (Wed Jun 25, 2:10 am)