Cloning / Reading only history /log of a git repository

Within a localy cloned git repository i can watch the history with

git log

In a small tool i do only need the history of a repository, not the code.
Is there a way to clone a repository without the code (history only) ?

  • Can I add changes to staging area from another branch?
  • Having multiple Git repositories
  • Idea to mirror an svn to git
  • What to put into ~/.gitconfig to imply --show-signature for every git subcommand that supports it?
  • How to prevent rebase of certain branches, such as 'master'
  • Does git-flow merging scale well for larger teams?
  • Is there any other way to get the history only from a git repository.

    Thanks in advance

  • git commit not working on directory
  • Migrating from Subversion to Git how can I find a commit given a revision number?
  • How to monitor a git repository for changes?
  • git pull “ fatal: Uh oh. Your system reports no Git commands at all.”
  • Git revert deleted file and preserve file history
  • git add will not stage certain files
  • One Solution collect form web for “Cloning / Reading only history /log of a git repository”

    Clone the repository with the --bare flag:

    git clone --bare ...
    

    A “bare” repository in Git just contains the version control
    information
    and no working files (no tree) and it doesn’t contain the
    special .git sub-directory. Instead, it contains all the contents of
    the .git sub-directory directly in the main directory itself.

    http://www.bitflop.dk/tutorials/git-bare-vs-non-bare-repositories.html

    Git Baby is a git and github fan, let's start git clone.