Skip to content

Instantly share code, notes, and snippets.

@tatuas
Created September 20, 2013 05:51
Show Gist options
  • Save tatuas/6633769 to your computer and use it in GitHub Desktop.
Save tatuas/6633769 to your computer and use it in GitHub Desktop.
gitで、特定のリビジョンから指定したファイルを取り出す方法
// リビジョン番号を確認
$ git log --oneline
// 標準出力からファイルに出力
$ git cat-file blob リビジョン番号:ファイル名 > 出力ファイル名
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment