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.gitBut 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.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Secure .git folder’ is closed to new replies.