adding/tracking remote branch

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

 



Hi,

I have a git repository setup with existing remote origin URL. I am
trying to add a new remote URL and would like to get this remote's
master (or any other) branch in my repository. I tried following
commands but it didn't work:

$ git remote add <remote-name> <remote-url>
$ git config branch.<branch-name>.remote <remote-name>
$ git fetch <remote-name>
$ git checkout -b --track <branch-name>
refs/remotes/<remote-name>/<remote-branch-name> # here I got branch
started from my current working branch and not with remote-branch
contents

I appreciate any help on right set of commands here. What am I missing here?

--
neuby.r
--
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]