You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Include the git-subtree executable with the included git client #11523
Describe the feature or problem you’d like to solve
The GitHub Desktop client includes a git client but that git client doesn't contain the git-subtree executable.
This can cause some problems, for example if the git repository has git hooks that use the git subtree command, those git hooks will fail with the following message:
git: 'subtree' is not a git command. See 'git --help'.
See screenshot below.
Proposed solution
Include the git-subtree executable with the included git client.
The git-subtree executable was included before, at least in some very old GitHub Desktop versions (I've version since 2018 that included it).
I manually copied the git-subtree executable into ~/Applications/GitHub Desktop.app/Contents/Resources/app/git/libexec/git-core/ on my Mac and then the git hooks work as expected but I would need to add the executable after each update of the GitHub Desktop client.
changed the title [-]Include the `git-subtree` executable with the included git client[/-][+]Include the git-subtree executable with the included git client[/+]on Feb 3, 2021
The support is experimental and currently limited to our beta channel. While we believe that this release resolved this issue we're looking for real-world feedback so if you have the ability we'd appreciate it if you could download our beta channel and give it a spin. Ensure the experimental hooks support it's enabled by going to Settings -> Git -> Hooks and making sure the "Load Git hook environment variables from shell" is ticked.
Activity
[-]Include the `git-subtree` executable with the included git client[/-][+]Include the git-subtree executable with the included git client[/+]niik commentedon Jan 14, 2026
Yesterday we shipped GitHub Desktop 3.5.5-beta1 to our beta channel with improved support for hooks related to committing.
The support is experimental and currently limited to our beta channel. While we believe that this release resolved this issue we're looking for real-world feedback so if you have the ability we'd appreciate it if you could download our beta channel and give it a spin. Ensure the experimental hooks support it's enabled by going to Settings -> Git -> Hooks and making sure the "Load Git hook environment variables from shell" is ticked.