Comments (4)
I found that there already exists a relevant issue at #200.
If I get a response or my problem is resolved I will come back and close.
from ghq.
You can control this by setting the environment variable GHQ_ROOT
(which takes precedence over anything else)
~ % cd /tmp
/tmp % ghq get teoljungberg/dotfiles
exists /Users/teo/src/github.com/teoljungberg/dotfiles
/tmp % GHQ_ROOT=$(pwd) ghq get teoljungberg/dotfiles
clone https://github.com/teoljungberg/dotfiles -> /tmp/github.com/teoljungberg/dotfiles
git clone --recursive https://github.com/teoljungberg/dotfiles /tmp/github.com/teoljungberg/dotfiles
Cloning into '/tmp/github.com/teoljungberg/dotfiles'...
remote: Enumerating objects: 12424, done.
remote: Counting objects: 100% (1520/1520), done.
remote: Compressing objects: 100% (836/836), done.
remote: Total 12424 (delta 915), reused 1221 (delta 630), pack-reused 10904
Receiving objects: 100% (12424/12424), 2.72 MiB | 2.44 MiB/s, done.
Resolving deltas: 100% (7517/7517), done.
from ghq.
Hi man, thanks for replying. I was refering to using multiple roots, which is discouraged..
from ghq.
Interesting, perhaps you can set environment variable GHQ_ROOT based on directory with DirEnv or set a different environment setting in .gitconfig per directory/source pattern. I doubt either will work out of the box, but try it out!
See also #300 which seems to be a duplicate.
from ghq.
Related Issues (20)
- Feature Request: Add MacPorts package
- Feature request: Optional wait between invokations of git
- ghq version 1.3.0-1 does not build anymore. HOT 1
- support breezy HOT 1
- Request: ability to configure default user/org name HOT 1
- Distribute via PPA for ubuntu based distros HOT 1
- feat: 'ghq goto' command to find and go to any repo's local location, 'ghq get -' command to re-do the operation on the last used repo like 'cd - or git switch - HOT 1
- [Feature] Support scalar
- Feature request: print the directory path to stdout on `ghq get` HOT 2
- ghq change origin
- Feature request: support partial clone HOT 1
- Feature request: ghq `clone` command HOT 1
- `ghq` get is slow when directory already exists HOT 6
- Clone from gitlab.com via ssh fails HOT 3
- Feature request: List uncommitted changes and stashes within all repos
- Is it possible to simplify or map to a specific child directory? HOT 3
- gitconfig ghq by host isn't working
- `ghq get` did not entirely clone SVN repository
- Installation Failure of ghq Plugin via mise: 'Could not download' Error
- VCS detection broken for codeberg
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghq.