Re: git-pull can't be used without URL - Has worked before
- From
Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
- Date
- Mar 16, 2007, 11:52 UTC
- Message-ID
- <45FA84EF.3010103@lu.unisi.ch>
- In-Reply-To
- <6bb9c1030703160324u17d49b85s754ac8358f633bde@mail.gmail.com>
> I don't have .../.git/remotes directory in this setup??
For v1.5.0, git-clone sets up a remote repository so that you can look at what's going on remotely like this:
git log origin/next
To create your branch, you have to do something like
git-checkout -b my-branch origin/next git-config add branch.my-branch.remote origin git-config add branch.my-branch.merge refs/heads/next
Note that the branch in the last command is the remote branch name not the local name.
<shameless-advertisement-of-my-patches> With the current git "master" branch, you are able to do something like
git-checkout --track -b my-branch origin/next
and git-pull (with no arguments) will automatically pull from whatever branch you specified upon branch creation. --track also works with local branches, so you can have your topic branches track the tip of your current development branch, for example. </shameless-advertisement-of-my-patches>
Paolo