Install debuild / dpkg to always ignore .git directories

To distribute my Ubuntu packages, I use debuild -Sto create the source package, and then upload it to the launchpad, which creates binary packages. It is very comfortable. However, I noticed that my source packages grow rapidly in size due to the fact that all my packages contain a directory .gitthat is included in all source packages.

How can I set the global parameter so that debuild / dpkg always skips any directories .gitwhen creating the source package?

+3
source share
3 answers

You can use something like this

git archive master | tar -x -C /somewhere/else

.deb /where/else, .git

0

.git, : debuild -S -i -I

-i , VCS, . , (.so ..)

+7

Git, git-buildpackage Debian (.dsc ).

git-buildpackage -i dpkg-source, .git .

Debian Git, .

+1

All Articles