I
I
Ivan Klimchuk2011-07-21 16:22:46
GitHub
Ivan Klimchuk, 2011-07-21 16:22:46

Relevance of the fork on github?

Guys, I probably didn’t finish reading something or just inattentive. I can’t understand what to do in the following situation: I made a fork of the project, but a long time ago, and I would need to change something there and make a pull request, but how to monitor and keep the fork version up to date? Or is it the service itself?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sl_bug, 2011-07-21
@Alroniks

Let's say we forked github.com/rails/rals to get github.com/sl_bug/rails. Declined, Wrote something. and then this construction:
1. git remote add rails_orig git://github.com/rails/rails.git
2. git fetch rails_orig
3. git merge rails_orig/master (I would also like to rebase)
4. fix conflicts if there are
5 .git push origin master

I
iley, 2011-07-21
@iley

You can pull from the original source to your local repository and then push to your fork. I don't know any other way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question