We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
如何從頭開始做 101,又能保留之前進度
以下是操作教學:
若還沒下載 sourcetree, 請前往 https://www.sourcetreeapp.com/ 下載
用 source tree 打開你的專案資料夾 大概會呈現這樣的畫面
建立一個新的 branch
將新建好的 branch reset 到一開始的進度
這時候會跳出一個視窗, 選擇 『Hard』
確認 Gemfile 與 資料庫設定 當我們回溯進度的時候,直接運作 rails s 會出現問題
因為 Gemfile 跟 資料庫設定還在回溯前的版本,所以我們要執行
bundle install 確認有把 Gem 裝好
bundle install
rake db:migrate 確認資料庫設定,
rake db:migrate
如果出現錯誤,那就輸入
rake db:drop
來重設資料庫