I have the following error:
/mingw32/bin/git: Argument list too long
when i do :
git archive -o ../archive.zip HEAD $(git diff --name-only --diff-filter=ACMRTUXB xxxxxxx)
xxxxxxx = SHA commit
Before it worked.
I use Git Bash Sourcetree.
Thank you for your help
You git diff is producing a file list that has too many files for bash to allow as arguments. You might research how to use xargs to accomplish your task.
Basic usage outlined here: http://stackoverflow.com/questions/11289551/argument-list-too-long-error-for-rm-cp-mv-commands
To clarify, is SourceTree running the archive command, or are you running it by hand in the Terminal?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, then SourceTree has nothing to do with your question, it is just a generic git question.
I would recommended emailing the original author of your command and asking if he has any ideas: http://tosbourn.com/using-git-to-create-an-archive-of-changed-files/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nope, that would be a MinGW question. I'm pretty good at SourceTree, but haven't done anything under the hood of MinGW.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.