Ignore meaningless “Merge branch” commits in Git history?

Please take a look at the following Git history:

enter image description here

  • tabs width and git - force git convert automatically on commit
  • Git - Changes made in meld (as the difftool) not saved
  • Moving deletions to a branch in git
  • The certificate /usr/share/rhn/RHNS-CA-CERT is expired
  • Symfony bin/vendors local modifications
  • Will “renamed” file's content be versioned
  • About every second commit is meaningless “Merge branch” noise. I know that you can (and should) avoid it by rebasing, but my question is more about dealing with the situation afterwards.

    Is there a trick to ignore “Merge branch” commits without information?

    It would be acceptable for me to clone the repository and locally rewrite its history, so it is easier to analyze its changes (without all the “Merge branch” noise).

  • What is a more efficient and collaborate way of merging branches that has too many commits?
  • Editing configuration files on OpenShift
  • How can I get the diff between all the commits that occurred between two dates with Git?
  • How to find the size of diff objects when executing 'git fetch'?
  • How Do I Pull a Single Commit In Git?
  • In which programming languages are technologies like Git built and how can I learn them?
  • 3 Solutions collect form web for “Ignore meaningless “Merge branch” commits in Git history?”

    You are looking for

    git log --no-merges

    BroiSatse’s nice “git log –no-merges” trick can also be applied in gitk:

    • View -> Edit view -> Additional arguments to git log: “–no-merges”

    The result looks like this:

    enter image description here

    to avoid having a lot of merges, it is better to pull using rebase:

    git pull --rebase

    see docs here

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