Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmainguy committed Jun 12, 2021
1 parent a2b14d6 commit 85fcc4b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ Rename your Github branch from its current default (likely "master"), to a new d

Can be run against a single repo, or all repos the user owns

After the default branch has been renamed, contributors to the repo will see
![Branch has been renamed](https://github.com/Jmainguy/ghdefaultbranch/blob/main/docs/main.png?raw=true)

Which asks the user to run the following on their local copy (assuming an old name of master, and a new name of main)
```
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
```

## Usage
By default without arguments, this program will print all repos the token has access to.

Expand Down
Binary file added docs/main.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 85fcc4b

Please sign in to comment.