Question about standard git/github workflow procedure I think. But I really understand all that stuff very badly.
- A month ago I had forked some project.
- I made my branches with
changes I need - Original project has changed since
- I want to fork new version and add changes that I’ve made to previous version
How should I do this? The problems I faced:
1) I can not fork new version, when I press fork github redirects me to my current fork of new version, do I have to remove it to have new version?
2) Is it possible some how to apply changes I’ve made to previous version in some automatically manner?
I think you just need to fetch upstream.
At this point, you have the new version on a branch named
merge-upstream. If everything still works from here, you’ll want to merge this to your master.Now your
mastershould be all good with the original master. Delete your working branch.You now have a copy. So you can test your changes against the new
master. Mergemasterinto your branch to test.You should now have all of the changes from the original user’s master branch merged into your feature branch.
PS: When working on a long-running project, I try to make sure the original master doesn’t get more than a day or two ahead of me. In fact, I always add the remote
upstreamto point to the original user’s repository. Then I can pull in upstream changes whenever I need them.