I have a large legacy repo, of which I am only interested in the widgets directory. By using a git sparse checkout I am able to download only the folder I am interested in, which is nice.
My local repo now looks likes this:
/.git
/blah/blah/blah/blah/widgets/foo-widget.f90
I would prefer to not see all that nesting.
Is there some variation on a sparse checkout whereby I could have my local repo look like this instead?
/.git
/widgets/foo-widget.f90
I am aware that I could just create a new repo, but then I would loose the ability push and pull from the remote repo.