V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
这是一个专门讨论 idea 的地方。

每个人的时间,资源是有限的,有的时候你或许能够想到很多 idea,但是由于现实的限制,却并不是所有的 idea 都能够成为现实。

那这个时候,不妨可以把那些 idea 分享出来,启发别人。
tioover

对整个系统的配置文件进行版本控制?

  •  
  •   tioover · May 31, 2012 · 4266 views
    This topic created in 5089 days ago, the information mentioned may be changed or developed.
    感觉配置文件经常改来改去的一不小心就改不回来原来的效果了
    一般而言就是 cp foobar.conf foobar.conf.old
    但这样一是麻烦而是只能返回上一个版本,而且到处都是old也不好看不好管理
    如果系统里有个类似git的东西(或者就是git)在管理一切配置文件的变更那有多好
    8 replies    1970-01-01 08:00:00 +08:00
    fanzeyi
        1
    fanzeyi  
       May 31, 2012
    cd ~/.config && git init
    fanzeyi
        2
    fanzeyi  
       May 31, 2012
    // im kidding..
    tioover
        3
    tioover  
    OP
       May 31, 2012
    @fanzeyi 本来想吐槽的= =
    9hills
        4
    9hills  
       May 31, 2012
    @tioover
    @fanzeyi 还真有在/etc用git init的。。。
    levn
        5
    levn  
       May 31, 2012   ❤️ 1
    X_Del
        6
    X_Del  
       May 31, 2012
    @fanzeyi 不如单独创建个文件夹,然后符号链接……
    eric_q
        7
    eric_q  
       Jun 1, 2012
    puppet + git
    mr_pppoe
        8
    mr_pppoe  
       Jun 1, 2012
    我就是在home下git init...用白名单加文件...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   927 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 20:11 · PVG 04:11 · LAX 13:11 · JFK 16:11
    ♥ Do have faith in what you're doing.