Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git avoid to push binaries

Tags:

git

binaries

Suppose I have a private repository and a public one. I develop using my private repository, and at significant steps I do a commit in which I save all, sources] and binaries. The reason for saving binaries is to allow to recover a previously committed version without having then to rebuild all binaries. When I have completed the development of a feature, I push it to a public repository, one that is accessed by an integrator, that takes my contributes and other developers' as well, and integrates all of them. After having pulled all the contributed, the integrator always rebuilds the binaries. Therefore, there is no need for me to push binaries from my private repository to the public one, and for him to pull them. Is there a way in git to avoid to push and pull binaries in this workflow?

like image 239
Angelo Borsotti Avatar asked Nov 23 '25 15:11

Angelo Borsotti


1 Answers

What the Fedora project does is to have a look-aside cache, in which binaries are checked in and identified by their checksums -- if you don't need the binaries, simply ignore the file that list the checksums and corresponding file names

like image 187
michel-slm Avatar answered Nov 26 '25 09:11

michel-slm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!