[請益] git刪除檔案後如何取出

看板PHP作者 (...)時間7年前 (2017/10/20 23:51), 編輯推噓0(002)
留言2則, 2人參與, 7年前最新討論串1/1
有一個資料夾 D:\www\example.local\httpdocs .git .gitignore index.php \app\ \database\ ... 如果把 .git 以外的檔案都刪掉,剩下這樣 D:\www\example.local\httpdocs .git 這時候要怎麼把 .git 裡面的內容取出來? 我使用 TortoiseGit。提供指令也可以。 謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.165.120.79 ※ 文章網址: https://www.ptt.cc/bbs/PHP/M.1508514663.A.45B.html

10/20 23:52, 7年前 , 1F
git reset HEAD --hard
10/20 23:52, 1F

10/20 23:55, 7年前 , 2F
真的叫出來了。謝謝大大 ^^
10/20 23:55, 2F
文章代碼(AID): #1PwXjdHR (PHP)
文章代碼(AID): #1PwXjdHR (PHP)