DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Keeping Forks in Sync

Keeping Forks in Sync

Rob Williams user avatar by
Rob Williams
·
Apr. 28, 11 · Java Zone · Interview
Like (0)
Save
Tweet
4.81K Views

Join the DZone community and get the full member experience.

Join For Free

In the typical workflow we had adopted for using Git, developers were making topic branches, and then using rebase to bring in changes from master and then going back and merging their branch.

With pull requests, you work off your fork, creating pull requests then going back to the main codebase and performing merges.

Which begs the question: do you just hang on to your fork and work from it indefinitely? and if so, how do you bring changes onto it?

Thankfully, GitHub has some answers here
The crux of this is that you are making another remote for the original source called upstream and repeatedly fetching then merging onto your fork.

So does this mean rebase is banished from the workflow vocabulary? Seemingly so. Or maybe it‘s just there to squash down commits now.

The whole process feels a bit messier when you first imagine that everyone on the team is going to be forking the source, but then you realize that it actually feels a lot more sanitary to have some separation. The real brass ring in this direction, though, is going to be in getting to control the flow of merges and building up more work where multiple parties are collaborating. This still feels a bit like caveman: we hunt together, then we hack off a limb and go and gnaw on it in our corner.

This is the new flow and it‘s a really good one. Strike a victory for tools here. While I have been critical of GH for commercializing the work of others, the other side is that they have quickly demonstrated that a concerted effort between a core tool and some interface tools can make something that‘s been around for over a decade have an appealing zing that it would never have had were it left to its own devices.

 

From http://www.jroller.com/robwilliams/entry/keeping_forks_in_sync

Fork (software development) Sync (Unix)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Testing Under the Hood Or Behind the Wheel
  • Creating Event-Based Architecture on Top of Existing API Ecosystem
  • Federated Schema Design
  • A First Look at CSS When and Else Statements

Comments

Java Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo