DZone
DevOps 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 > DevOps Zone > Polishing Your Feature Branch Commits

Polishing Your Feature Branch Commits

Juri Strumpflohner user avatar by
Juri Strumpflohner
·
Mar. 27, 15 · DevOps Zone · Interview
Like (0)
Save
Tweet
3.67K Views

Join the DZone community and get the full member experience.

Join For Free

when you create your own, personal feature branch you're allowed to do as much commits as you want, even allowing kinda dirty commit messages. this is a really powerful approach as you can jump back to any point in your dev cycle. however, once you're ready to merge back to master you should polish your commit history by doing a rebase. this is done using git rebase -i head~<num-commits>

the following animated gif shows how do do it:

demo on cleaning up your commit history ( enlarge )
Commit (data management) Branch (computer science)

Published at DZone with permission of Juri Strumpflohner. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Exporting and Importing Projects in Eclipse
  • Use Lambda Function URL To Write a Serverless App Backed by DynamoDB
  • What SREs Can Learn From the Atlassian Nightmare Outage of 2022
  • Message Queuing and the Database: Solving the Dual Write Problem

Comments

DevOps 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