Title: Secure .git folder
Last modified: August 22, 2016

---

# Secure .git folder

 *  Resolved [michelinium](https://wordpress.org/support/users/michelinium/)
 * (@michelinium)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/secure-git-folder/)
 * I read your recommendation to set password to remote repository like this:
 * > If you’re using HTTPS, you will need to provide the password in the URL like
   > so:
   >  [https://USERNAME:PASSWORD@REPO_HOST/USERNAME/REPO.git](https://USERNAME:PASSWORD@REPO_HOST/USERNAME/REPO.git)
 * But anybody then can see it when open address “.git/config” so you should at 
   least protect folder “.git” with file “.htaccess” (content: Deny from all) if
   you are on Apache or some similar way for Nginx.
 * [https://wordpress.org/plugins/revisr/](https://wordpress.org/plugins/revisr/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * (@expandedfronts)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/secure-git-folder/#post-5179337)
 * Thanks, will add this into the installation notes.
 *  Plugin Author [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * (@expandedfronts)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/secure-git-folder/#post-5179428)
 * Hello,
 * This has been added to the installation notes page:
    [https://wordpress.org/plugins/revisr/installation/](https://wordpress.org/plugins/revisr/installation/)
 * Also encouraged using SSH as opposed to HTTPS, as this is a more secure method
   that makes this issue irrelevant.
 * Thank you.
 *  Thread Starter [michelinium](https://wordpress.org/support/users/michelinium/)
 * (@michelinium)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/secure-git-folder/#post-5179430)
 * I thank you for your plugin a looking forward to see it even more useful in future
   when git could be regular component on web hostings.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Secure .git folder’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/revisr_ecf0f1.svg)
 * [Revisr](https://wordpress.org/plugins/revisr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/revisr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/revisr/)
 * [Active Topics](https://wordpress.org/support/plugin/revisr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/revisr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/revisr/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [michelinium](https://wordpress.org/support/users/michelinium/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/secure-git-folder/#post-5179430)
 * Status: resolved