Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8265415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:47:40+00:00 2026-06-08T04:47:40+00:00

Git includes a set of tools contributed by third parties . I’m not sure

  • 0

Git includes a set of tools contributed by third parties. I’m not sure how I’m supposed to use these tools correctly.

For example, I’d like to use git-subtree. There seem to be a number of ways I could use this:

  1. Copy to my path

     cp /path/to/git-subtree.sh /usr/local/bin/git-subtree
     chmod +x /usr/local/bin/git-subtree
    

    Works fine, feels a bit hacky.

  2. Symlink to my path

     chmod +x /path/to/git-subtree.sh
     ln -s /path/to/git-subtree.sh /usr/local/bin/git-subtree
    

    Also works, feels marginally less hacky

  3. Use a git alias

    Add the following to my global .gitconfig file:

     [alias]
         subtree = !/path/to/git-subtree.sh
    

    Then good old chmod again:

     chmod +x /path/to/git-subtree.sh
    

    Works, feels all nice and git-ish.

  4. Use the Makefile

    Per the INSTALL file.

     cd /path/to/git-subtree.sh
     make
     make install
     make install-doc
    

    Doesn’t work for me, it tries to install to a non-existent path. Perhaps this is because I installed git using homebrew rather than installing from source? I’m too lazy to investigate; I already have three working alternatives. 🙂

So my question is, which of these is the preferred way of installing git-contrib add-ons? Is there even a preferred way? Is there another option I haven’t suggested that’s better than the ones listed above?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:47:42+00:00Added an answer on June 8, 2026 at 4:47 am

    Contribs is a collection of helpful things. You don’t install them as a package. For example, to install the tab completion, you simply source that script from your .bash_profile script. Each contrib in that folder has it’s own way of using it.

    as for compiling git from source

    make
    sudo make install
    

    after you install all the prerequisites.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my ios project I use git as scm. Xcode listing of repositories includes
Currently my terminal prompt includes git information. Example clean directory: michaelespinosa:~/Sites/example.com [git:master] Example dirty
The git repository includes a jar for Android 2.2. Can I use filecache in
git clone supports both HTTPS and SSH remote URLs. Which should I use? What
Git says to use git add to add untracked files to my repo. I
Git is implemented as a directed acyclic graph. Children know their parents but not
I'm following the git tutorial at gitimmersion.com and set up an alias hist to
With Git, if you are committing, it includes a section under the commit message
I use to git diff to generate patches that can be applied to remote
The diff command, even using git option, includes path prefixes commonly used on DCS:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.