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/
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
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