Giter Site home page Giter Site logo

hub submodule add about hub HOT 6 CLOSED

mislav avatar mislav commented on July 17, 2024
hub submodule add

from hub.

Comments (6)

stephencelis avatar stephencelis commented on July 17, 2024

And manpages:

http://github.com/stephencelis/hub/commit/fe847adb36d2a570a6bbca5078643dd657420660

from hub.

defunkt avatar defunkt commented on July 17, 2024

If we're going to add submodule support to hub, I'd like to go full on:

  • Adding a submodule
  • Removing a submodule
  • Updating all existing submodules

I've never gotten the hang of submodules and I think there's a real opportunity to slim them down and make them more usable. What do you think?

from hub.

stephencelis avatar stephencelis commented on July 17, 2024

Submodules are agreeably a mess. I'd be interested in simplifying submodule removal (currently requires manual editing of .git/config and .gitmodules, git rm --cached path/to/submodule, and rm -fr path/to/submodule). Not sure what the syntax would be: git submodule remove or git submodule rm (or both)?

Updating is easy enough, though obtuse (git submodule foreach git pull). Not sure how to simplify this without further confusing the already-confusing difference with git submodule update (which will pull in local updates but not fetch remotes, I think).

I wonder if hub is the right place for these non-GitHub optimizations, though? Should there be an additional wrapper?

from hub.

jridgewell avatar jridgewell commented on July 17, 2024

My own two cents:

  • Use git submodule rm, as it keeps in line with git remote rm
  • Use git submodule update, and run a fetch and update. (Another possibility would be git submodule pull)

from hub.

mislav avatar mislav commented on July 17, 2024

We shouldn't change the semantics of submodule update. I'm all for a new command; submodule pull seems nice.

from hub.

defunkt avatar defunkt commented on July 17, 2024

hub submodule add has been merged, closing this for now. Thanks!

from hub.

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.