1
I have php website, for prevent hacker modify any file and inject backdoor, i want use git as file tracking solution, this is my shell script:
#!/bin/sh
msg_i(){
echo "[I] $1"
}
msg_e(){
echo "[E] $1"
}
if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
msg_e "Not in a gi...