---
title: "Discussion on \"Suppose, you have two git branches dev and main. You want to delete main branch and convert the dev branch into main branch. How can you do that?\" | Hashnode"
description: "Discussion on \"Suppose, you have two git branches dev and main. You want to delete main branch and convert the dev branch into main branch. How can you do that?\". Recently, I have faced an interesting problem. For a project, I had to delete my main branch and convert the dev branch into the main branch."
url: "https://hashnode.com/posts/suppose-you-have-two-git-branches-dev-and-main-you-want-to-delete-main-branch-and-convert-the-dev-branch-into-main-branch-how-can-you-do-that/65341129f85db938d11d0ca1"
---

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

Discussion

# [Suppose, you have two git branches dev and main. You want to delete main branch and convert the dev branch into main branch. How can you do that?](https://blog.musfiqdehan.me/suppose-you-have-two-git-branches-dev-and-main-you-want-to-delete-main-branch-and-convert-the-dev-branch-into-main-branch-how-can-you-do-that?utm_source=hashnode&utm_medium=feed)

Recently, I have faced an interesting problem. For a project, I had to delete my main branch and convert the dev branch into the main branch.

Oct 21, 2023 · 2 min read · blog.musfiqdehan.me  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#github](https://hashnode.com/tag/github)
-   [#branch](https://hashnode.com/tag/branch)

## Written by

[Md. Musfiqur Rahaman](https://hashnode.com/@musfiqdehan)

@musfiqdehan · Dhaka, Bangladesh

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

Aspiring Software Engineer | Open Source Enthusiast

I am a developer from Bangladesh. Recently I have graduated in Computer Science and Engineering from North South University. I love to work with Python, JavaScript and also interested in ML, DL, NLP.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
