1
1

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.

【Git】リモートリポジトリの過去のバージョンを取得

Posted at

Github等のリモートリポジトリの過去のバージョンを取得する方法

1.過去のバージョンを確認

git log <オプション>

2.過去のバージョンに戻す

1に表示された戻したいバージョンのコミットIDを使用する

git checkout <コミットID>

# 例
git checkout 838dff8fsdfsdf8sdsdf8sd8fdsf8sdf8dg
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?