Giter Site home page Giter Site logo

Getting started weird issue about noted HOT 7 CLOSED

scottashipp avatar scottashipp commented on July 20, 2024
Getting started weird issue

from noted.

Comments (7)

SitramSoft avatar SitramSoft commented on July 20, 2024 1

Perhaps create a fork of the repo, fix the readme with the proper syntax and create a PR?

from noted.

shrihankp avatar shrihankp commented on July 20, 2024 1

Just a tidbit: The -C option and the regular git <repo_path> <clone_output_dir>, while seem to do the same thing, they actually aren't:

-C
Run as if git was started in instead of the current working directory. When multiple -C options are given, each subsequent non-absolute -C is interpreted relative to the preceding -C . If is present but empty, e.g. -C "", then the current working directory is left unchanged.

This option affects options that expect path name like --git-dir and --work-tree in that their interpretations of the path names would be made relative to the working directory caused by the -C option. For example the following invocations are equivalent:

git --git-dir=a.git --work-tree=b -C c status
git --git-dir=c/a.git --work-tree=c/b status

Good day1

from noted.

SitramSoft avatar SitramSoft commented on July 20, 2024

As a workaround, you can manually create your $HOME/Documents, then cd into it and run git clone [email protected]:scottashipp/noted.git

Not sure how it is on mac but the according to git documentation the correct syntax should be the one below. I couldn't find any reference for parameter -C.

git clone <git_repo_url> <your_custom_directory_name>

from noted.

codams avatar codams commented on July 20, 2024

Thank you for your answer, yes it's what I did and it works 🙂

I couldn't find ref either for the -C option but it is in the readme :
image

from noted.

scottashipp avatar scottashipp commented on July 20, 2024

@SitramSoft @codams The -C flag is documented in the git man page here. I think it'd be fine to switch over to git clone [email protected]:scottashipp/noted.git $HOME/Documents since that is simpler, and should work just as well for the particular use case in the README.

from noted.

SitramSoft avatar SitramSoft commented on July 20, 2024

You are right, it is a valid option.

from noted.

codams avatar codams commented on July 20, 2024

Done 😀

from noted.

Related Issues (3)

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.