2
2

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 1 year has passed since last update.

GitHubで過去のバージョンを取得する方法について

Last updated at Posted at 2023-06-14

①ローカル環境にリポジトリをCloneする

$ git clone git@github.com:{{YOUR-USERNAME}}/{{YOUR-REPOSITORY}}

②過去のバージョンのSHAを取得する

GitHub上のコミット履歴から戻したい箇所のSHAを取得します。

スクリーンショット-2023-03-18-15.43.41 (1).jpg

③ローカルのリポジトリを過去のバージョンに切り替える

$ git checkout {{SHA}}
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?