Short syntax for ignoring directory/ and .directory/ in .gitignore?

Is there a short syntax for ignoring


at my .gitignore (something in the lines of \.?directory/)?

  • Force git to run post-receive hook, even if everything is “up-to-date”
  • Include a GitHub submodule automatically in download
  • Powershell Command to Run “git gc” in all sub-directories that are git repos
  • Error updating packages (0.4)
  • npm install not reading package.json
  • hash collisions between hg/mercurial and git?
  • Reproducible android builds with git with fast forward merges
  • Sharing Git Patches between IntelliJ Idea & Eclipse
  • Git diff --name-only and copy that list
  • git doesn't fetch new changes
  • Why git can't merge renames with modifications?
  • RStudio w/Git Integrated throws index.lock error on commit
  • One Solution collect form web for “Short syntax for ignoring directory/ and .directory/ in .gitignore?”

    No. Gitignore uses glob patterns, which only supports the ‘?’ and ‘*’ wildcards for “one arbitrary character” or “any number of arbitrary characters”, respectively.

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