How to use winget to install Git with custom options? #3462
-
How can I toggle installation options for Git?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Probably want to swing through git-for-windows/git#4423 I am guessing the arg you are looking for you can pass in using the /o param to Inno. You can still use the inno feature to get the iss file for the command lines you want to use. I then use --custom in winget to pass those to git for windows. you can use --override, but you will need to also handle the visibility and logging args as well since those will be dropped. |
Beta Was this translation helpful? Give feedback.
-
If anyone runs across this, I've managed to turn off options by explicitly declaring the components I want: winget install --id=Git.Git --custom '/components="gitlfs,assoc,autoupdate"' List of components: Documentation on the /COMPONENTS parameter: I have not figured out how to change some other options like default editor, whether to use bundled/external SSH, line endings, etc. For now, seems easier just to use |
Beta Was this translation helpful? Give feedback.
Probably want to swing through git-for-windows/git#4423 I am guessing the arg you are looking for you can pass in using the /o param to Inno. You can still use the inno feature to get the iss file for the command lines you want to use. I then use --custom in winget to pass those to git for windows. you can use --override, but you will need to also handle the visibility and logging args as well since those will be dropped.