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

Clone fork in the original owner's directory (via option?) #132

Open
s3i7h opened this issue Apr 22, 2023 · 1 comment
Open

Clone fork in the original owner's directory (via option?) #132

s3i7h opened this issue Apr 22, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@s3i7h
Copy link
Contributor

s3i7h commented Apr 22, 2023

Currently clone --fork will clone the forked repository as it is, but making clone --fork clone the fork into the original owner's directory might be more useful.

current: ~/.ghr/github.com/yu-ichiro/ghr
proposal: ~/.ghr/github.com/siketyan/ghr (cloned from yu-ichiro/ghr)

This has some advantages such as:

  • being able to distinguish the forked repository by its original owner
  • ghr browse will open the original repo (which IMO used more often)

Btw adding upstream to remotes after cloning a fork will be very useful and I was thinking it might be good to release these features together

@siketyan
Copy link
Owner

Yes, I also want this. But I prefer configuring it by the config file (ghr.toml) instead of the command-line option. I think this dicision is partially permanent for a user.

@siketyan siketyan self-assigned this Apr 23, 2023
@siketyan siketyan added this to the v0.3 milestone Apr 23, 2023
@siketyan siketyan moved this to In Progress in Feature Roadmap of ghr Apr 23, 2023
@siketyan siketyan added the enhancement New feature or request label Apr 27, 2023
@siketyan siketyan modified the milestones: v0.3, v0.4, v0.5 Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

No branches or pull requests

2 participants