Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zardoy/rename-repos

CLI to rename all local folder repos to `owner-name` or other template
https://github.com/zardoy/rename-repos

cli github-repos javascript repository utility

Last synced: 26 days ago
JSON representation

CLI to rename all local folder repos to `owner-name` or other template

Awesome Lists containing this project

README

        

# Owner-name repos

Advanced utility for managing names of your cloned repos from GitHub.

## What is does?

> Note: I don't really maintain this utility, but it's alive

This is the most comprehensive CLI to:

- Rename repos to `owner_repo-name` template. Ex: `vscode-eslint` into `microsoft_vscode-eslint`.
- If you recently renamed a lot repos on GitHub you can run `update-names-from-github` action (note that `GITHUB_TOKEN` env must be set with at least `public_repo` scope) to update local names of repos (all folders from cwd) to match GitHub repo names.

![demo](media/rename-demo.png)

## Philosophy

By default, `git clone` and even `gh repo clone` chooses the name for the directory just *repo name*, but if you need to clone (for some reason) forks of different people.
And yes, I still prefer to clone every repo locally rather than work with them [remotely](https://docs.github.com/en/codespaces/developing-in-codespaces/using-codespaces-in-visual-studio-code).