我從有從github 抓了一包程式 , 發現 .git 太大
我想把保留最新的20筆 git commit 資料
請問要怎麼做才可以只保留最新20筆
抱歉我講一下我推到bitbucket 步驟
1. git clone https://github.com/xxxx/xxxx.git --depth 20
2. git remote add backup ssh://[email protected]/nameID/backup.git
3. git push -u backup master
push 之後就出現下面訊息
! [remote rejected]master -> master (shallow up not allowed)
謝謝
--
我想把保留最新的20筆 git commit 資料
請問要怎麼做才可以只保留最新20筆
抱歉我講一下我推到bitbucket 步驟
1. git clone https://github.com/xxxx/xxxx.git --depth 20
2. git remote add backup ssh://[email protected]/nameID/backup.git
3. git push -u backup master
push 之後就出現下面訊息
! [remote rejected]master -> master (shallow up not allowed)
謝謝
--
All Comments