1
0

More than 3 years have passed since last update.

git clone --depth 1 したリポジトリの履歴をやっぱりすべて取得する

Posted at

ビルドで過去のコミット数を参照している部分があり、--depth 1でクローンしたリポジトリのすべての履歴が後から必要になりました。
以下のコマンドですべての過去のコミット数が取得できるようになりました。

git fetch --unshallow

参考
https://stackoverflow.com/questions/6802145/how-to-convert-a-git-shallow-clone-to-a-full-clone

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0