git cat-file -p master^{tree} errors out in zsh

In documentation, under git objects chapter, it uses the command below, but trying it out gives me “zsh: no matches found: master^{tree}”. Any idea what’s incorrect?

git cat-file -p master^{tree}

  • Is it better to use a separate commit message for a git merge?
  • Deploy with git to dokku on digitalocean
  • How to pull other people's (github) commits into your tree?
  • Open a file directly from a GitLab private repository
  • capistrano deploy asking for USERNAME / PASSWORD on git ls-remote call
  • Git and binary data
  • Should I merge .pbxproj files with git using merge=union?
  • What is the best way to git patch a subrange of a branch?
  • Git commit against tag with no branch
  • Howto add a changed file to an older (not last) commit in Git
  • How to make setuptools clone git dependencies recursively?
  • Git rebase tries to apply changes to wrong file
  • 3 Solutions collect form web for “git cat-file -p master^{tree} errors out in zsh”

    I’ve found that when specifying those more tricky git revision parameters, I have to quote them

    git cat-file -p "master^{tree}"

    while leaving out the " fails.

    This behavior and and the reason for it varies with the platform:

    • On Windows, in PowerShell and cmd.exe, ^ is used for escaping. There, you can alternatively write git cat-file -p master^^{tree}
    • In zsh ^ is a globbing character
    • In bash the command works without quotes

    (thanks to Wumpus Q. Wumbley and kostix for explanations)

    You can run noglob whatever if you want to run whatever without globbing. I have it defined as an alias for rake, for instance.

    Need to clone a project before executing that step in Windows.

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