5
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

Organization

[Git] shallow cloneしたリポジトリを、あとで完全にfetchする

--depth 1 をつけでcloneしたリポジトリを、あとで完全な状態にする方法メモ

TL;DR

fetch --unshallow を使用すればよいとのこと

$ git fetch --unshallow

もし Git が 1.8.3 以前であれば以下でもなんとかなるらしい。(depthの値は十分に深ければなんでもよい)

$ git fetch --depth=1000000

TODO

複数ブランチが存在している場合でも問題ない?

参考

git - Convert shallow clone to full clone - Stack Overflow

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
5
Help us understand the problem. What are the problem?