Excluding some refspecs from git push?
- From
- Paul Sokolovsky <paul.sokolovsky@linaro.org>
- Date
- Jul 23, 2011, 21:46 UTC
- Message-ID
- <20110724004650.408741c5@x34f>
Hello,
Is there a way to exclude some refspec from being processed by "git push"? What I'm looking for is a syntax like:
push some-remote 'refs/*' '!refs/meta/config'
, with the meaning of "push all refs except refs/meta/config". What I'm trying to do with this is to find out a generic way to mirror git repositories managed by the Gerrit tool (http://code.google.com/p/gerrit/), which since version 2.2 uses refs/meta/config branch to store repository-local configuration, so should not be mirrored between two Gerrit's.
-- Best Regards, Paul Linaro.org | Open source software for ARM SoCs Follow Linaro: http://www.facebook.com/pages/Linaro http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog