---
title: "Discussion on \"Git Merge vs Rebase\" | Hashnode"
description: "Discussion on \"Git Merge vs Rebase\". When you are using git, most probably you may used git merge or git rebase to combine two branches. Pretty much both of these commands do the same thing. But people select either of technique based on their requirements. This post is to compare the d..."
url: "https://hashnode.com/posts/git-merge-vs-rebase/5cbe94890fcfc550339af884"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Git Merge vs Rebase](https://dhanushkamadushan.hashnode.dev/git-merge-vs-rebase?utm_source=hashnode&utm_medium=feed)

When you are using git, most probably you may used git merge or git rebase to combine two branches. Pretty much both of these commands do the same thing. But people select either of technique based on their requirements. This post is to compare the d...

Apr 23, 2019 · dhanushkamadushan.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#version-control](https://hashnode.com/tag/version-control)
-   [#versioning](https://hashnode.com/tag/versioning)
-   [#github](https://hashnode.com/tag/github)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Dhanushka Madushan](https://hashnode.com/@dhanushkamadushan)

@dhanushkamadushan · Colombo, Sri Lanka

  
[View profile](https://hashnode.com/@dhanushkamadushan)

Tech Lead @ Enactor · Integration × AI agents · Ex-WSO2 · Packt author

Technical Team Lead at Enactor (retail commerce platform). 5 years building WSO2's integration engine before that. Author of Cloud Native Applications with Ballerina (Packt). I write about integration, distributed systems and making AI agents work with real enterprise systems.

## Responses 1

Markdown supported · ⌘↵ to post

[This.JustIn](https://hashnode.com/@Jvincent)

[Apr 23, 2019](https://hashnode.com/posts/git-merge-vs-rebase/5cbe94890fcfc550339af884/comment/5cbe98b10fcfc550339af889)

Dhanushka, thanks for writing this summary of the differences of git merge and git rebase. Git skills are essential these days. One thing that I think might be nice to add is the possible problems that can arise from a rebase of branches that are each several commits apart, compared to a git merge. As far as my preference, it depends on the situation, as you said. I like the neatness of a rebase but sometimes merge is easier and faster.

[Dhanushka Madushan](https://hashnode.com/@dhanushkamadushan)

[Apr 23, 2019](https://hashnode.com/posts/git-merge-vs-rebase/5cbe94890fcfc550339af884/comment/5cbe98b10fcfc550339af889#reply-5cbeadea0fcfc550339af89f)

Thank you @Jvincent for your suggestion. I will add common possible rebase/merge problems in next article.
