What do these git symbols mean?

In git, what does the at symbol and curly braces mean?

git reset --soft HEAD@{1}

Likewise, what do double hyphens mean? Not as an option, but as used like so:

  • Pushing fails - Empty repository at remote server with GitKraken
  • How can I commit files with git?
  • A Regex to match a SHA1
  • Getting current Git commit version from within Rails app?
  • Github/Cygwin error: cygheap base mismatch detected
  • Subversion equivalent of “git add .”?
  • git checkout abcd1234 -- .
    

    I’m sure this is referenced somewhere obvious, but I’m having a hard time finding it. Also, searching for non-alphanumeric symbols is difficult.

  • Git rebase issue with files of same name but different case
  • How to organize a set of scientific experiments using Git
  • Cloning only a subdirectory with git
  • How to push to bitbucket using intellij
  • Bitbucket branch management
  • How can I delete all Git branches which have been merged?
  • One Solution collect form web for “What do these git symbols mean?”

    The at and curly braces are documented in the gitrevisions manual page.

    In your example, it means the prior value of the HEAD ref – whatever commit HEAD pointed to before your most recent commit or checkout or whatever.

    The double hyphens separate flags from non-flags (usually filenames, but sometimes other things like branch names or remote names). You can use -- to make sure git doesn’t treat the argument after the -- as a flag, in case it might look like one.

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