Use a separate function to store current script filepath
Switch to parent directory before running any git command
Remove need to pass current path when not required
Add command to add current file to cache and reset