LoginSignup
0
0

More than 5 years have passed since last update.

ドットファイル(設定ファイル)をGit管理する

Posted at

何が嬉しいのか

  • 複数のPCを使っている場合に設定を統一させたい場合に同期できるのでとても便利
  • 社内の複数人で共通の設定を使う場合などにも使える

設定例

.bashrcを管理する例を書いておく

  1. 設定ファイルを管理するディレクトリの作成

    $ mkdir ~/.setting_files
    
  2. 設定ファイルを移動してシンボリックリンクの作成

    $ mv ~/.bashrc ~/.setting_files/
    $ ln -s ~/setting_files/.bashrc ~/.bashrc
    
  3. Git管理してリモートにpush

設定ファイルをゴリゴリ書くような人は既にやっているかと思いますが記事として残しておきます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0