git log 保留部份最新 - Linux

By Hardy
at 2017-09-03T01:28
at 2017-09-03T01:28
Table of Contents
我從有從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)
謝謝
--
Tags:
Linux
All Comments

By Charlotte
at 2017-09-07T20:11
at 2017-09-07T20:11

By Isabella
at 2017-09-10T19:54
at 2017-09-10T19:54

By Jack
at 2017-09-13T05:24
at 2017-09-13T05:24

By Olga
at 2017-09-16T09:30
at 2017-09-16T09:30

By Audriana
at 2017-09-19T07:21
at 2017-09-19T07:21

By Vanessa
at 2017-09-21T10:10
at 2017-09-21T10:10

By Edwina
at 2017-09-24T03:39
at 2017-09-24T03:39

By Audriana
at 2017-09-25T19:37
at 2017-09-25T19:37

By Carolina Franco
at 2017-09-28T15:02
at 2017-09-28T15:02

By Doris
at 2017-09-30T11:27
at 2017-09-30T11:27

By Oliver
at 2017-10-04T09:20
at 2017-10-04T09:20

By David
at 2017-10-04T22:17
at 2017-10-04T22:17

By Freda
at 2017-10-08T00:39
at 2017-10-08T00:39

By Oscar
at 2017-10-12T08:44
at 2017-10-12T08:44
Related Posts
雙系統時間跑掉以及launcher與圖示包問題

By Mary
at 2017-09-02T17:18
at 2017-09-02T17:18
Fedora安裝後沒聲音

By Bennie
at 2017-09-02T15:26
at 2017-09-02T15:26
yum install & remove

By Ethan
at 2017-09-02T12:58
at 2017-09-02T12:58
CUDA安裝後無法登入

By Zora
at 2017-09-02T11:46
at 2017-09-02T11:46
centos7 安裝 xrdp-v0.6.0

By John
at 2017-08-30T19:45
at 2017-08-30T19:45