---
title: "Rename your Master Branch"
date: 2020-06-12
published: false
tags:
  - git
template: hot-tip
---


# Rename your Master Branch

``` bash
git branch -m master main
git push -u origin main
```
