element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Community Hub
Community Hub
Member Blogs Break-Fix with GitHub: part two: push bug fixes to the development team
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 16 May 2020 11:56 AM Date Created
  • Views 576 views
  • Likes 3 likes
  • Comments 0 comments
  • tutorial
  • github
  • version_control
  • learning
  • git
Related
Recommended

Break-Fix with GitHub: part two: push bug fixes to the development team

Jan Cumps
Jan Cumps
16 May 2020

image

 

This is going to be a short article, because the activity is identical to Firmware Release with GitHub: Branch, Issue, Pull Request and Project support , but the other way around.

 

When creating a release, you merge the development code into the official master.

But here,  after finishing a hot-fix, you merge the production changes (fixed code) with the ongoing project.

 

This time, I'll just use Git to merge the code, and GitHub to submit the pull request. Without project board support - because we've seen that extensively in the previous articles.

 

image

 

 

Step 1: Work is done - create a temporary dev-sync branch to prepare the merge of master changes into development

 

$ mkdir dev-sync 
$ cd dev-sync 
$ git clone -b development https://github.com/jancumps/msp432.git

 

 

image

$ cd msp432 
$ git merge origin/master -m "sync master hot-fix changes into the development branch"

 

image

 

$ git checkout -b prod-sync 
$ git push --set-upstream origin prod-sync

 

image

Our dev-sync branch is now ready to be integrated into development. Over to GitHub for the Pull Request...

 

Step 2: Merge into development via pull request

 

We've seen this a few times now. I'm not going to dive into this. Take care to merge from dev-sync into development.

 

image

 

Step 3: Review the pull request and accept it.

 

When you have a development branch owner, that person would accept the pull request If you're a sole proprietorship, use your admin override to approve your own pull request.

The break-fix is now in the development branch and you just dodged the risk to have a regression hit you at the next release.

Delete the temporary dev-sync branch now.

 

In this flow where I didn't discuss the project board, the core steps are more apparent. The raw steps to get bug fixes synced to development with branch strategy.

If you want to try it with project board support - all is essentially the same. Just link Pull Request and Issue to the Project board.

 

Homesending

 

This is the end of the series. With the goal to give insight into managed branches.

If you're not into Git with this support: all of this can be done with direct commits into the master and development branches.

That works well too. You have to make choices.

 

Related Blog
Firmware Version Control with GitHub part 1: Branch Strategy for New Features
Firmware Version Control with GitHub part 2: Branch Strategy for Bug Fixes
Firmware Release with GitHub: Branch, Issue, Pull Request and Project support
Fix a Bug in Production with GitHub: Issue, Branch, Project and (Draft) Pull Request supported + Eclipse Git Plug-in
Break-Fix with GitHub: part two: push bug fixes to the development team
GIT course
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube