As title suggest, I want to know if there is a single git command that put all my project in one folder first (not including .gitignored files) and then proceed archiving the folder— leaving ignored files not included when archiving which is nice.
This can be beneficial for me as I am working on WordPress plugin with multiple release. Some references.
I want all the files (minus the
.gitignored
files) move to a folder first then proceed archiving that folder
It is possible in one command provided you define an alias but this isn't git-related:
you can:
tar cpvf yourArchive.tar yourFolder
)But git archive
alone won't help you move those files, which is why I would recommend a script with custom bash commands (not git commands).