0
0

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 3 years have passed since last update.

Cloud9で削除してしまったファイルの復元方法

Posted at

こんにちは!テックアカデミーのWebアプリコースを受講している駆け出し高校生エンジニアの安田駿介です。

今回は、「Cloud9で削除してしまったファイルの復元方法」というテーマで解説していきます。

なお、基本はGitHubから持ってくるのが基本です。

しかし、commitしていなかったら、この手法を使っていきましょう。

復元手順

1.該当のファイル(もしくは同名のファイルを再作成して)を開く
2.上部メニューの「File」そして「show file revision history」をクリック
3.巻き戻しのヤツ(名前わかんない)が出てくる
4.Revertボタンを押す

1.該当のファイル(もしくは同名のファイルを再作成して)を開く

d75143acae4660244ddc317fd9cb925b.png
僕の場合は、favorites_controller.rbというファイルを開きました。

2.上部メニューの「File」そして「show file revision history」をクリック

184f687db8987158d9595624c88d3d59.png

3.巻き戻しのヤツ(名前わかんない)が出てくる

40972d98cb54431bfe2e77c099def7d3.png
左側に動かすと、保存履歴から順に表示されます。

4.Revertボタンを押す

戻したい時点で「Revert」を押してください。
23e84f0173a30d4c1828aa35d62bf1c6.png
これで、巻き戻し完了です。

開発環境

・AWS
・Cloud9
・Ruby 3.0.0
・Rails 6.1.3.1

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?