請問如何在桌面 Git hub history上將檔案刪掉?
2019/11/15 下午 00:56
Python網路爬蟲討論版
Bungee514
觀看數:16
回答數:1
收藏數:1
github history
剛剛交作業時, 一併將train 的csv檔放上 hub, 結果按 push 後出現警示: The push operation includes a file which exceeds GitHub's file size restriction of 100MB. Please remove the file from history and try again.
看起來是檔案太大, 可是這個請問要怎麼取消上傳? 謝謝
回答列表
-
2019/11/15 下午 01:01CUPOY贊同數:不贊同數:留言數:
建議你整個過程重新操作一次。然後在第一次上傳 commit 前,先加一個檔案「.gitignore」裡面放資料的名稱(*.csv)。這樣的意思是說,哪些檔案是不需要一起 push 的。
或請使用commit 下面有個 undo 就可以復原了。