Many thanks for the link. I tried the tutorial but still could not get git to work.
I have managed to solve one of the problems which was due to the online file not having shared access. A new installation now created with the following:
git init --bare shared=true
That managed an extra step on the ladder and can now locally git clone … the online repository files and directories and upload the local changes:
git push
Counting objects: 3, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 295 bytes | 295.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
To 123.456.789.876:/var/www/URL-001.com/public_html/.git
ad41a71..50e8400 master -> master
BUT where they go nobody knows The online files do not change.
I tried again and was delighted to get it to work. Paths were the problems and misleading error messages, which I Googled and dug myself deeper into a hole with an unfathomable depth
Working on my LOCALHOST requires opening a Command Window, navigate to the project folder:
git clone<online site> // only required once to download all the online files
git add . // notice the trailing period to initially add ALL files to the project
Locally edit (and create new files and/or folders)
git status // to view only changes
git commit -ma // to commit changes ready for uploading/pushing
git push // to upload only modified files and folders
Locally browse ONLINE site and view rendered changes
Very Important:
Further file modifications only require items 5 and 6 to upload changed files.
Upload process is virtually instant, far quicker than FleZilla. Goodbye ver-001, ver-002, ver-003, etc
Also I believe that working/editing files on another computer is possible. I have yet to investigate many of the numerous features, especially rollback to a previous version.
Note:
Git (not to be confused with https://github.com) is installed on the Linux Apache2 Ubuntu Remote Server and also on my working computer. Macs and Windows can also have a local Git installation and perform the same tasks to the remote server.