11
11

More than 5 years have passed since last update.

個人的に便利だったdiffの使い方

Last updated at Posted at 2012-06-27

symfonyの開発環境のconfigを結構いじって、configureもした状態でコミットする際、差分を見るのに困っていたら教わった便利なdiffの使い方。

dev.foo/ が開発環境
prod.foo/ が本番と同様の環境を構築している

新規で追加されたファイルのみを抽出

diff -r dev.foo/ prod.foo/ | grep "^dev.foo"

差分のあるファイルのみを抽出

diff -r dev.foo/ prod.foo/ | grep "^diff"
11
11
1

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
11
11