Git - determine branch remote source

Nathan Blackham kemotaha at gmail.com
Sat Feb 12 13:53:00 MST 2011


I always look in the .git/config file in the repo.  It has all config
for that repo including the remote location.

On Tue, Feb 8, 2011 at 8:39 AM, Andrew McNabb <amcnabb at mcnabbs.org> wrote:
> On Tue, Feb 08, 2011 at 08:55:07AM -0700, Kenneth Burgener wrote:
>>
>> How does one determine the source remote (and branch) for a local
>> branch?
>
> There might be a better way, but you could always do:
>
> git config branch.master.remote
>
> to show the remote associated with the branch "master".
>
> --
> Andrew McNabb
> http://www.mcnabbs.org/andrew/
> PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>


More information about the PLUG mailing list