Answers: <p>If you interested only in the log messages, you don't need to pull. You could run:</p>
  <pre><code>git fetch
  </code></pre>
  <p>... and then</p>
  <pre><code>git log --remotes
  </code></pre>
  <p>Now you'll see remote commit logs.</p>
  <p>To see only remote commits (assuming the branch in question is master):</p>
  <pre><code>git log --remotes --not master
  </code></pre>
  <p>If you can't even fetch, you'll need to ssh the remote repository machine. If you're using Github you could try use its API.</p>
  
Answers: CC BY-SA 4.0
Answers: 2022-02-01T15:13:38.870Z
Answers: 2022-02-01T16:21:44.210Z
Answers: 2022-02-01T16:21:44.210Z
Answers: samueldc
Body: <p>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.</p>
  <p>now I'm wondering if there a way to pull only git logs from a branch!</p>
  <p>and if possible is possible to pull logs after or before a commit hash?</p>
  
Tags: <git>
Title: how to pull only git logs without pulling the whole file tree and diffs
UserDisplayName: sepisoad
ThreadText: # how to pull only git logs without pulling the whole file tree and diffs
  
  (Asked by: username_0 on 2022-01-30)
  
  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?
  
  **Tags:** git
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-02-01. Score: 1
  
  If you interested only in the log messages, you don't need to pull. You could run:
  
  ```
  git fetch
  
  ```
  
  ... and then
  
  ```
  git log --remotes
  
  ```
  
  Now you'll see remote commit logs.
  
  To see only remote commits (assuming the branch in question is master):
  
  ```
  git log --remotes --not master
  
  ```
  
  If you can't even fetch, you'll need to ssh the remote repository machine. If you're using Github you could try use its API.
  
  
  ---
  
  