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

In gitscm.org 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}

  • Azure deploy repository from an organization
  • How to pull a specific file with GIT?
  • Setting Git/SmartGit SSH Client's home folder
  • When cloning an svn repository into git, should I clone only trunk, or the entire repo?
  • How do you pull from a different branch than the master using git?
  • Build jenkins job when push code to bitbucket
  • How to change the contents of a commit using git server side hooks with gitlab
  • Workflow for forking an open source repository
  • Caching functions in Python to disk with expiration based on version
  • build.gradle dependency on gitlab (local server)
  • Git pre-svn-dcommit hook
  • Sprockets::FileNotFound: couldn't find file '../../fonts/bootstrap/glyphicons-halflings-regular.eot'
  • 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.