title: Git clone --bare / fetch
body: <p>I have a git repository with long and strange history. I don't know what the developers did with this repository and cannot control what they are doing with it now.</p>
  
  <p>But I need to clone this repository (for redmine integration) and fetch all changes periodically.</p>
  
  <p>What do I do:</p>
  
  <pre><code>git clone --bare git@git.server.com:/opt/git/repo
  cd repo.git
  git log
  </code></pre>
  
  <p>Now I can see all commits.  Fine.</p>
  
  <p>Next a developer make a commit in the main repository and I want to fetch all changes (all brances, tags and so on, and so on):</p>
  
  <pre><code>&gt; git fetch --all 
  Fetching origin
  remote: Counting objects: 18, done.
  remote: Compressing objects: 100% (14/14), done.
  remote: Total 14 (delta 5), reused 0 (delta 0)
  Unpacking objects: 100% (14/14), done.
  From git.gmcs.ru:/opt/git/ecco
   * branch            HEAD       -&gt; FETCH_HEAD
  </code></pre>
  
  <p>But if a ask the commit history I didn't see that last commit which was made in the main repository.  Why ?</p>
  
  <p>If I post not enough information I am ready to give you all the needed.</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Updated</strong></p>
  
  <p>Here is a brach information in the original repsitory:</p>
  
  <pre><code>git branch -a
    one
    test
  * master
    release
  </code></pre>
  
  <p>Here is a branch information in the cloned repository:</p>
  
  <pre><code>git branch -a
    one
    test
  * master
    release
  </code></pre>
  
  <p>I can see last commits in the master branch of original repository, but can not find them in the master branch of cloned repository.</p>