Quantcast
Channel: jun01tの日記
Viewing all articles
Browse latest Browse all 87

開発中のブランチの特定のファイルをdevelopに戻したい場合(git checkout)

$
0
0

gitコマンド

現在のブランチを確認

git branch --show-current

develop以外の開発中のブランチになっていることを確認

例) 開発中のブランチの特定のファイルをdevelopの同じファイルで上書きする

git checkout develop /path/target_folder/target_file.html
git checkout [copy元のブランチ名] [コピーしたいファイルパス]

Viewing all articles
Browse latest Browse all 87

Trending Articles