[sf-lug] Fwd: [UMALUG] bash scripting question
Tyler Trafford
ttrafford at gmail.com
Thu Mar 6 07:16:51 PST 2008
Tyler Trafford wrote:
> Rick Moen wrote:
>
>> 2. I believe the question you meant to ask is "Does _git_ have a way
>> to replicate to elsewhere (via "git clone" and so on), only the files
>> that are readable by the world on the local Unix system?" Feel free
>> to investigate on your own how to restrict what "git clone" and such
>> are willing to replicate. (I'm way too busy to research that, myself,
>> at the moment. I'm also not a seasoned git user, and trying really
>> hard not to solve problems with it that aren't necessary to my
>> situation.)
>
> I believe you can:
>
> * clone /etc git repo to a secure work directory
> * remove all sensitive/non-user readable files
> * add list of files above to .gitignore
> * commit
> * move git repo to somewhere gitweb can see it
Err, no. That wouldn't work. I know how to set it up from a fresh
"etckeeper init" (pre-commit), but not after that.
> * from time to time, rebase your public repo against the one in /etc
> * maintain up to date .gitignore for public repo
--
Tyler Trafford
A sect or party is an elegant incognito devised to save a man from
the vexation of thinking.
-- Ralph Waldo Emerson, Journals, 1831
More information about the sf-lug
mailing list