Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
チェックアウトフックを起動させずに、特定のコミットからファイルをチェックアウトするエレガントな方法を探しています。
たとえば、私はしたくない:
git checkout foo/bar/baz.txt
チェックアウト後のフックが起動します。
git show HEAD:foo/bar/baz.txt | sed -e 'some funky stuff to correct line endings' > foo/bar/baz.txt
git reset <commitid> foo/bar/baz.txt git checkout-index -f foo/bar/baz.txt