On Jan 6, 12:12 pm, Konstantin Khomoutov <khomou...@gmail.com> wrote:

> I've just forked my friend's project on github, checked it out,
> and it seems that the forked repo is not really tied to the repo
> it was forked off: there's just one remote, "origin", which is
> my forked repo.
> So I think you have two ways to solve your problem:
> 1) Dumb but simple: just re-fork.
> 2) Smart but complicated:
>    a) Add original repo, which you forked, as a second remote to your
>       repo: just grab its "read-only" URL and do `git remote add ...`
>       with that URL.
>    b) Fetch the branches and necessary objects from that remote
>       using `git fetch REMOTE`.
>    c) Re-create your local branches from the matching branches from
>       that remote (this would require some branch renaming and
>       creation using `git branch ...`).
>    d) Re-write matching branches in your forked remote branches
>       using `git push ...` with the "-f" command-line option.

Okay. thanks. I'll just refork --beyond step 2b it seems like more
work then it's worth.

> >> Otherwise, just delete the branches you no longer need and pull changes 
> >> from
> >> upstream master to yours. This won't sync other branches from upstream but 
> >> you
> >> can make that happen too, especially if you made them tracking branches.
>
> >> I think you have some reading to do...
> > Too much reading... and I've already had to read too much as far as I
> > am concerned.
>
> That's quite impolite, you know.
> We're not your personal paid tech support so better make these statements
> to yourself, privately.

That came across the wrong way then. Sorry. I only meant that I have
done a lot of reading about git and some things that seem like they
should be fairly straight-forward I have the damnedest time figuring
out how to do, or when I do find a way it's too esoteric. My favorite
example is:

   $ git push origin :refs/tags/12345

So nothing to do with posts or persons here, it's git itself. If it
wasn't for GitHub, which I like a lot, I'm pretty sure I would not be
using git.
-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.


Reply via email to