Re: git-pull can't be used without URL - Has worked before

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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.


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.

Paolo
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]