操作git時,不小心把未commit的代碼遺失(其實git存入stash中)
及時不小心真的刪了也不要緊茸习,idea有自動記錄代碼的功能,右擊項目,選擇local history ->show history
選擇未刪除的時間點復原即可
獲取stash的方法
右擊項目-》git->repository->unstash Changes
尋找剛才存入stash的代碼壁肋,點擊Apply Stash
操作git時,不小心把未commit的代碼遺失(其實git存入stash中)
及時不小心真的刪了也不要緊茸习,idea有自動記錄代碼的功能,右擊項目,選擇local history ->show history
選擇未刪除的時間點復原即可
右擊項目-》git->repository->unstash Changes
尋找剛才存入stash的代碼壁肋,點擊Apply Stash