コード日進月歩

しんくうの技術的な小話、メモ、つれづれ、など

2020-01-06から1日間の記事一覧

Gitのcheckoutを使って特定のファイルを前の指定されたコミット状態にもどす

Git

よく忘れるのでメモ 環境 $ git --version git version 2.21.1 (Apple Git-122.3) 原理 git checkout [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] Overwrite the contents of the files that match the pathspec. When the <tree-ish> (most often a commit</tree-ish></tree-ish>…