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
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/
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot