It’s not working because you have ‘svn’ instead of ‘git’ in the rule.
All you have to do is to replace the ‘svn’ with ‘git’.
<Directorymatch "^/.*/\.git/">
Order 'deny,allow'
Deny from all
</Directorymatch>
Related Posts:
- Handling file renames in Git
- Why are there two ways to unstage a file in Git?
- ‘git’ is not recognized as an internal or external command
- ‘git’ is not recognized as an internal or external command
- How to remove origin from git repository
- What’s the purpose of git-mv?
- git : Pull is not possible because you have unmerged files
- Why git asks to enter a commit message to explain why this merge is necessary
- How do I remove version tracking from a project cloned from git?
- How do I remove version tracking from a project cloned from git?
- git pull on a different branch
- Download a specific tag with Git
- Git push won’t do anything (everything up-to-date)
- git add . -> still “nothing to commit” with new files
- git submodule add error: does not have a commit checked out
- Git error on git pull (unable to update local ref)
- git status shows modifications, git checkout —
doesn’t remove them - How to resolve git’s “not something we can merge” error
- How to clone all remote branches in Git
- Update Git branches from master
- How to squash all git commits into one?
- How to interactively (visually) resolve conflicts in SourceTree / git
- How can I delete all of my Git stashes at once?
- git add only modified changes and ignore untracked files
- Remove node_modules from git in vscode
- What’s the use of the staging area in Git?
- git push –force-with-lease vs. –force
- How can I move a tag on a git branch to a different commit?
- How do I select which Apache MPM to use?
- Redirect, Change URLs or Redirect HTTP to HTTPS in Apache – Everything You Ever Wanted to Know About mod_rewrite Rules but Were Afraid to Ask
- Finding out what user Apache is running as?
- Is it bad to redirect http to https?
- Is it possible to generate RSA key without pass phrase?
- What does Apache’s “Require all granted” really do?
- Multiple SSL domains on the same IP address and same port?
- What firewall ports need to be open to allow access to external git repositories?
- Proxy Error 502 “Reason: Error reading from remote server” with Apache 2.2.3 (Debian) mod_proxy and Jetty 6.1.18
- How does ServerName and ServerAlias work?
- Dealing with HTTP w00tw00t attacks
- Apache2 config variable is not defined
- Using variables in Apache config files to reduce duplication?
- How to get Apache2 to redirect to a subdirectory
- Why is the response on localhost so slow?
- Do you have any useful awk and grep scripts for parsing apache logs? [closed]
- apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
- How can I convert MP3 file to a Base64 encoded string? [closed]
- error: src refspec master does not match any
- How to cherry pick from 1 branch to another
- What is a sanity test/check
- How to Git stash pop specific stash in 1.8.3?
- What is an instance variable in Java?
- Discord music bot not working
- How do I revert a Git repository to a previous commit?
- How to merge branch to master?
- Git: How do I force “git pull” to overwrite local files?
- What happens when I do git pull origin master in the develop branch?
- How do I resolve git saying “Commit your changes or stash them before you can merge”?
- What is a bitmask and a mask?
- How to fetch all Git branches
- C++ code file extension? What is the difference between .cc and .cpp
- Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch
- Ping – Request timed out
- How do you create a remote Git branch?
- How do I update or sync a forked repository on GitHub?
- git status (nothing to commit, working directory clean), however with changes commited
- How do I get a list of built-in data sets in R?
- The following untracked working tree files would be overwritten by merge, but I don’t care
- java.text.ParseException: Unparseable date
- Difference between .o and .ko file
- R error: all arguments must have the same length
- error: cannot lock ref.. ‘refs/tags’ exists; cannot create ‘refs/tags/
- How do I install the OpenSSL libraries on Ubuntu?
- How can I specify a display?
- Clearing localStorage in javascript?
- Search all the occurrences of a string in the entire project in Android Studio
- Git how to clone with SSH key, username
- Python not working in the command line of git bash
- How to one hot encode several categorical variables in R
- cannot load such file — bundler/setup (LoadError)
- “webxml attribute is required” error in Maven
- How can I change the color of my prompt in zsh (different from normal text)?
- How to permanently remove few commits from remote branch
- mkdir c++ function
- C’s printf and fprintf(stdout,) are not printing
- What’s the difference between SoftReference and WeakReference in Java?
- Rebasing remote branches in Git
- Add all files to a commit except a single file?
- Vim Opening File E325 Attention Error
- How do I change the default location for Git Bash on Windows?
- Terminating app due to uncaught exception ‘NSUnknownKeyException’
- Does running git init twice initialize a repository or reinitialize an existing repo?
- Eclipse EGit Checkout conflict with files: – EGit doesn’t want to continue
- WordPress with Git
- Rewrite the base-url for single posts
- How to parse wordpress options json
- Multiple copies of the same website: how to organize code/architecture?
- A post has a js redirection script. How to not redirect its category?
- Cannot understand WordPress error message
- How to source control manage site images
- WordPress and Git: How does Git interact with your IDE? [closed]