Is it possible to simplify or map to a specific child directory?
Opened this issue · 3 comments
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?
@motemen bump :-) Just checking. I use this all the time and appreciate it! Was hoping you could give me a little insight to confirm.
Hello, I would recommend using url.insteadOf config to modify local path against remote url. Maybe this helps?
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://git@dev.azure.com/organization/project/_git/".insteadOf "azure:"