Settings

Theme

Show HN: git-repo-name – CLI to sync repo name between local and remote

github.com

1 points by poundofshrimp 9 months ago · 0 comments · 1 min read

Reader

Hey HN,

I frequently create GitHub repos for new projects and sometimes have to rename them to keep things organized. To make renaming easier, I built a CLI tool that helps to keep local and remote git repository names in sync.

It works bi-directionally and supports these two main use cases:

- When you rename a repo on GitHub, you can run `git-repo-name pull` to update the local git directory name. - When you rename a local git directory, you can run `git-repo-name push` to rename the repo on GitHub.

In both cases, it makes an API call to GitHub, compares the repo name to the local directory name, and automatically renames the appropriate side.

Feel free to try it out and let me know what you think!

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection