104
97

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Github内の過去のバージョンを取得する方法

Posted at

Github内の過去のバージョンを取得したときのメモ

#①過去のバージョンを取得したいレポジトリをローカルにCloneする

$ git clone git://github.com/XXXXXXXXXXXXXX

#②過去のバージョンに巻き戻す

##・Githubから任意のバージョンのSHAを取得する
スクリーンショット 2015-01-14 9.03.47.png

##・過去のバージョンに戻す

$ git checkout [SHA]

例:

$ git checkout 6c11982f991bf5981716852e57843783e9a37a1

104
97
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
104
97

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?