[問題] git log 保留部份最新
我從有從github 抓了一包程式 , 發現 .git 太大
我想把保留最新的20筆 git commit 資料
請問要怎麼做才可以只保留最新20筆
抱歉我講一下我推到bitbucket 步驟
1. git clone https://github.com/xxxx/xxxx.git --depth 20
2. git remote add backup ssh://git@bitbucket.org/nameID/backup.git
3. git push -u backup master
push 之後就出現下面訊息
! [remote rejected]master -> master (shallow up not allowed)
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 175.181.154.191
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1504373313.A.BA5.html
推
09/03 01:48, , 1F
09/03 01:48, 1F
→
09/03 10:19, , 2F
09/03 10:19, 2F
→
09/03 10:20, , 3F
09/03 10:20, 3F
→
09/03 10:21, , 4F
09/03 10:21, 4F
推
09/03 13:03, , 5F
09/03 13:03, 5F
→
09/03 13:04, , 6F
09/03 13:04, 6F
→
09/03 17:33, , 7F
09/03 17:33, 7F
→
09/03 17:33, , 8F
09/03 17:33, 8F
→
09/03 17:35, , 9F
09/03 17:35, 9F
→
09/03 17:35, , 10F
09/03 17:35, 10F
→
09/04 00:56, , 11F
09/04 00:56, 11F
→
09/04 11:22, , 12F
09/04 11:22, 12F
推
09/04 16:15, , 13F
09/04 16:15, 13F
推
09/04 17:37, , 14F
09/04 17:37, 14F
※ 編輯: yshihyu (175.181.254.216), 09/05/2017 00:55:44
※ 編輯: yshihyu (175.181.254.216), 09/05/2017 00:56:22
推
09/05 02:05, , 15F
09/05 02:05, 15F
→
09/05 02:05, , 16F
09/05 02:05, 16F
→
09/07 01:38, , 17F
09/07 01:38, 17F
→
09/07 01:38, , 18F
09/07 01:38, 18F
Linux 近期熱門文章
21
56
PTT數位生活區 即時熱門文章