I want to use git for my sites. So I understand that I have to use SSH and initialize git in the folder. But I can't find those files and want to know what is the path for those files?
Asked
Active
Viewed 151 times
1
-
1Care to give an example of one of "those files"? – Gerard H. Pille Jan 07 '21 at 05:55
-
Like for example its your index.php file of site example.com. In file manager On Cpanel, public_html contains all folders for different sites. – Vishal Kamlapure Jan 07 '21 at 05:57
1 Answers
1
something I found, If you have PHP then you can use this to get absolute path
<?php
$path = getcwd();
echo "This Is Your Absolute Path: ";
echo $path;
?>
example :- /home/user/public_html/test/test.php.
refrence :- Check this

Vishal Kamlapure
- 590
- 4
- 16