0

I have a server that has limited storage space and I need to track a git repository, but I am only interested in the log messages and not the whole repository (blobs, diffs, tags, ...). the repository that I'm willing to track has a large commit history, and above that it stores some large binary files which makes it impossible to sync and pull everything.

now I'm wondering if there a way to pull only git logs from a branch!

and if possible is possible to pull logs after or before a commit hash?

sepisoad
  • 2,201
  • 5
  • 26
  • 37
  • I need to get all logs, I guess the answer you refer to is only interested in cloning a repository with only recent changes – sepisoad Jan 30 '22 at 20:47
  • The accepted answer is strangely worded in that it doesn't answer the question, but provides a solution for the desired goal as described later in the question. The second answer is worded better. Basically, the answer is no, you can't. – TTT Jan 30 '22 at 20:51
  • 1
    `git clone --bare --filter=blob:none` – phd Jan 30 '22 at 21:16
  • @phd The two times I tried `--filter=blob:none` the results of my clone were pretty much identical to without that filter... – TTT Jan 30 '22 at 23:55
  • @TTT Very much depends how well the server supports protocol v2. Anyway this is the only way to fetch commits but not fetch files. – phd Jan 31 '22 at 08:52

0 Answers0