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) ?

  • Is there a git-merge --dry-run option?
  • github access denied access for push
  • Unable to deploy/move forward with simple web app
  • something like same “tag” for multiple commits
  • .gitignore file, where should I put it in my xcode project?
  • Xcode keeps committing DerivedData folder
  • Is there any other way to get the history only from a git repository.

    Thanks in advance

  • Git Fast-Forward Merge requires a pull first
  • What's the difference between git reset --hard and git reset --merge
  • Storing Drupal SQL in Git
  • How to auto deploying git repositories with submodules on AWS?
  • Find the parent branch of a Git branch
  • Is it possible to make --word-diff default in git diff, git gui, gitk
  • 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
    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.

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