Hi David, I have a few Git questions:
> # clone and track somebody else's work: > git branch --track my-copy origin/their-feature > # when working in the my-copy branch, pushing and pulling will do what you > mean What you are saying here is that when I am in the branch "my-copy", pushing and pulling will not go to origin/master but to origin/their-feature. Yes? Next question: I see "origin" coming up a lot in Git. That's the repository where I initially cloned from. But how do I specify some other repository? Let's suppose I have two team members called David and Chris and I want one branch to track David's work and another to track Chris' work. How would I do that? Would this work: git branch --track david-branch http://david.mertens.com git branch --track chris-branch http://chris.marshall.net Can you do something like that? > # push your work to the sourceforge server > git push origin my-feature Next questions: 1) Why do you always say "origin"? I see that a lot in Git docs and I don't understand why it is needed. What is "my-featue" here? ... Oh... I think I get it. "my-feature" is a branch. Right now you are in some other branch, but you want to push the branch my-feature to origin/master. Yes? 2) And how would this look if I don't want to push to origin? Can I make an alias so I can do: git push david my-feature > # pull others' contribution to your work from sourceforge: > git fetch origin > # then from my-feature branch: > git merge origin/my-feature And this will merge origin/my-feature to whichever branch I am on right now. Is that right? Or will it always merge to "my-copy" which we defined earlier? Daniel. -- No trees were killed in the generation of this message. A large number of electrons were, however, severely inconvenienced. _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
