LoginSignup
1
1

More than 3 years have passed since last update.

任意のブランチとの差分をチェックアウトする

Posted at

チェックアウトしたいファイル名を特定

--name-only オプションをつけるとファイル名だけを出力してくれる。

git diff upstream/develop --name-only

任意のブランチのファイルをチェックアウト

git checkout upstream/feature-branch-name -- app/src/file.ts
1
1
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
1
1