Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Re: merge two local mirrors with detached heads and similar remotes

From: Zenaan Harkness <hidden>
Date: 2016-06-15 22:49:59

In A) I modified .git/config to be as follows:
$ cat .git/config
[core]
       repositoryformatversion = 0
       filemode = true
       bare = false
       logallrefupdates = true
[remote "origin"]
       fetch = +refs/heads/*:refs/remotes/origin/*
       url = https://github.com/chad/gitjour.git
[branch "master"]
       remote = origin
       merge = refs/heads/master
[remote "lach"]
       url = ../u
#       fetch = +refs/heads/*:refs/remotes/origin/*
       fetch = +refs/remotes/origin/*:refs/remotes/lach/*
My final change, for reference, was updating [remote "latch"] section with:
   url = https://github.com/lachlanhardy/gitjour.git
   fetch = +refs/heads/*:refs/remotes/lach/*

Appears to work with  git fetch --all
and finally followed by  git gc
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help