Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hub fork <new repo name> #697

Open
zimme opened this issue Nov 22, 2014 · 5 comments
Open

hub fork <new repo name> #697

zimme opened this issue Nov 22, 2014 · 5 comments
Labels

Comments

@zimme
Copy link

zimme commented Nov 22, 2014

It would be nice to be able to fork a repo with another name

git clone github/hub hub-custom
cd hub-custom
git fork hub-custom

This would result in a fork on my github that's named hub-custom

@zimme
Copy link
Author

zimme commented Nov 22, 2014

Also if the git fork github/hub gets added then maybe git fork github/hub hub-custom could be useful

@bayleedev
Copy link

Hub uses octokit in the background. There's not a documented way to fork under another name, or rename repos that would allow this project to juggle them around. I don't think this is possible until the api supports that.

https://developer.github.com/v3/repos/forks/#create-a-fork

@izuzak
Copy link

izuzak commented Jan 2, 2015

There's not a documented way to fork under another name, or rename repos that would allow this project to juggle them around.

The API does allow you to rename a repository:

https://developer.github.com/v3/repos/#edit

@grimm26
Copy link

grimm26 commented Nov 14, 2017

Here's the git script that I use for making forks. It does a rename of the fork. Hope it helps someone.
https://gist.github.com/grimm26/5f87575f84eda316a7786ffc2acd6f9f

@jetersen
Copy link

I could see no one had requested the API change to help this feature along, so I created: https://github.uint.cloudmunity/t5/GitHub-API-Development-and/Add-support-for-rename-repository-when-creating-a-fork-from-API/m-p/44329#M3923

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants