When you do a github fork, you get a copy of all branches in the src
repo as of the moment of fork, and then they never get updated unless
you do it manually, and you never get any new branches.

I've been looking at ways to do this. The best I've found so far is:

# usage: git-sync-upstream SRC DST
set -e
git clone --mirror $1 _.git
cd _.git
git push --all $2

This updates any branches, but won't force update any branches I've
changed in DST (good), but also won't delete any branches that have
been dropped from SRC (bad).

I tired git clone --mirror SRC, git push --mirror DST, but that
deletes ALL the feature branches which are only in my fork. Oops.

Can anybody think of a better way?


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to