Move GitHub repository(Update description && URL && default branch && Archived).
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src
test
.babelrc
.gitignore
.travis.yml
LICENSE
README.md
package.json
yarn.lock

README.md

move-github-repository

It make your repository "301 Moved Permanently".

It does:

  • Update description && homepage
  • Create "301_moved_permanently" branch that has a README.md
  • Set "301_moved_permanently" as default branch
    • It aim to preserve exist link

Install

Install with npm:

npm install -g move-github-repository

Usage

Usage
  $ GH_TOKEN=xxx move-github-repository --description "[[MOVED]]" --homepage http://example.com/new

Options
  --description -d Description repository
  --homepage -h    New URL
  
Env
  GH_TOKEN=xxx move-github-repository --description "[[MOVED]]" --homepage http://example.com/new

Examples
  $ GH_TOKEN=xxx move-github-repository --description "[[MOVED]]" --homepage http://example.com/new

Example

 GH_TOKEN="xxxx" move-github-repository -d "[301 Moved]" -h "https://github.com/azu/move-github-repository"

Result: https://github.com/azu/movemovemomvomeove

Also:

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu