Giter VIP home page Giter VIP logo

Comments (8)

sakekasi avatar sakekasi commented on August 16, 2024

is the same true of

git config remote.origin.fetchurl ?

from git-reference.

ComputerDruid avatar ComputerDruid commented on August 16, 2024

The same is not true, according to a quick grep of the git sources. However, there is no need for such an option as both url and pushurl can be defined at the same time, and fetch will use url and push will use pushurl

from git-reference.

ComputerDruid avatar ComputerDruid commented on August 16, 2024

Also note, the proper way to set a pushurl is with git remote set-url --push ssh://user@host/path/to/repo.git

from git-reference.

timc13 avatar timc13 commented on August 16, 2024

how is that different than git config remote.origin.pushurl ssh://user@host/path/to/repo.git ?

from git-reference.

ComputerDruid avatar ComputerDruid commented on August 16, 2024

It is not functionally different, as set-url internally ends up just calling config. But set-url will complain if you mistype the command part "git remote set-url --push", whereas git config will silently accept mistyped options, but fail to actually set the remote's url.

Additionally, it is possible that set-url with, in the future, do some sanity checking on the value entered, whereas config will never do that.

from git-reference.

matthewmccullough avatar matthewmccullough commented on August 16, 2024

I know it has been a long while (7 months) since the last discussion in here. However, having just taken this repo over I'd be so glad to see a contribution of a Pull Request that added the distillate from this discussion about git remote set-url and its sanity checking for updating the URL. I'd gladly merge it in and give it polish. Let me know if you are up for creating a Pull Request @tbone47.

from git-reference.

randomecho avatar randomecho commented on August 16, 2024

Anyone still on this? Would be up for giving it a crack if nobody minds.

from git-reference.

matthewmccullough avatar matthewmccullough commented on August 16, 2024

@randomecho I know some folks are out of the holidays, but if you don't hear back from folks in a day or so, I'd say, please, please attack it. We'd be delighted!

from git-reference.

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.