Giter Site home page Giter Site logo

Comments (4)

molleweide avatar molleweide commented on August 28, 2024

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.

teoljungberg avatar teoljungberg commented on August 28, 2024

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.

molleweide avatar molleweide commented on August 28, 2024

Hi man, thanks for replying. I was refering to using multiple roots, which is discouraged..

from ghq.

mlavi avatar mlavi commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.