1
0

More than 3 years have passed since last update.

[git]地味に便利に特定ブランチの特定ファイルを持ってくる

Posted at

なんか微妙にミスってて一部ファイルをdevelopブランチとかから持ってきて、ごにょっとごまかしたい時ありますよね。そんな時の

checkout編

$ git checkout develop tests/API/*

developブランチの tests/API/* ディレクトリ全部持ってくる。


以下蛇足編

リバート編

コミットが一つなら単純に

$ git log 

commit bdf589c8bdca598eae59c8fd3559f5129e5489
Author: Yuki Hirao <>
Date:   Tue May 12 14:39:35 2020 +0900

    テスト修正: AAAAAAAA
$ git revert bdf589c8bdca598eae59c8fd3559f5129e5489

とかでいい気がする

1
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
1
0