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

Is it possible to simplify or map to a specific child directory? #388

Open
sheldonhull opened this issue Jun 6, 2024 · 3 comments
Open

Comments

@sheldonhull
Copy link

Github works perfectly. I can use get get or ghq get -p and get all contents to the same path.
For Azure Repos though the https and ssh paths are formatted differently.
That's ok, and I can live with it, two paths, since I tend to stick with just ssh or https for VCS.

However, what it actually does is split the url so I get a bunch of nested directories a bit more nested than I'd prefer.

/
└── Users
    └── username
        └── git
            └── ssh.dev.azure.com
                └── v3
                    └── orgname
                        └── projectname
                            └── reponame

Instead, I'd hope to just have option to map all of them to just be:

/
└── Users
    └── username
        └── git
            └── ssh.dev.azure.com
                        └── projectname
                            └── reponame

is that possible?

@sheldonhull
Copy link
Author

@motemen bump :-) Just checking. I use this all the time and appreciate it! Was hoping you could give me a little insight to confirm.

@motemen
Copy link
Member

motemen commented Aug 22, 2024

Hello, I would recommend using url.insteadOf config to modify local path against remote url. Maybe this helps?

@sheldonhull
Copy link
Author

Do you have a suggestion on what that would look like? Are you thinking something along these lines? I've never used this approach so making sure I'm on the same page.

git config --global url."ssh://[email protected]/organization/project/_git/".insteadOf "azure:"

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

No branches or pull requests

2 participants