# remained

> A tiny tool to do all the _local_ steps GitHub tells you to do once you've change your default branch name from `master` to `main`.

Latest version **1.0.0** (published 2021-04-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install remained
pnpm add remained
yarn add remained
bun add remained
```

Provides the command `remained`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-04-22 |
| First published | 2021-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Tierney Cyren |
| Maintainers | bnb |

## Links

- npm: https://www.npmjs.com/package/remained
- Repository: https://github.com/bnb/mainify
- Homepage: https://github.com/bnb/mainify#readme
- Issues: https://github.com/bnb/mainify/issues
- npm.io page: https://npm.io/package/remained

## Dependencies (1)

- [cross-spawn](https://npm.io/package/cross-spawn.md) ^7.0.3

## Recent versions

- 1.0.0 (latest) — 2021-04-22

## README

# remained

A tiny tool to do all the _local_ steps GitHub tells you to do once you've change your default branch name from `master` to `main`.

## Usage 

First, you'll want to change your upstream [default branch's name in GitHub](https://docs.github.com/en/enterprise-server@3.0/github/administering-a-repository/changing-the-default-branch).

Next, just run this commmand (assuming you already have Node.js installed):

```
npx remained
```

## What does remained do?

Remained runs the following commmands, which are the same commands that GitHub tells you to run when you rename your default branch:

```sh
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
```

---
_Source: https://npm.io/package/remained · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
