I created a new project here and then uploaded it to the server, but when I try to access the repository via URL it appears an Apache page with the name: Index of / site
, that is, my project folder is empty, but when I give a git clone
on a friend's computer using the same IP and the same project name as Git puts all the files and I can see them in localhost . Why is this happening on the server? Why can not I view the files on the server?
The repository was already on the server, but it still did not display the list of folders and files it contains.
Sequence of steps:
git clone ssh://@192.168.100.19/repositorios/git/api.git
cd api
rm -fr *
git add --all
git commit -m "removendo projeto antigo"
OBS : Before I gave the rm -fr
there I would enter the URL and not list anything.
cd ..
cd apinova
git checkout master
git remote add origin ssh://@192.168.100.19/repositorios/git/api.git
git pull origin master
There was no error here - > repository updated git push -u origin master
I sent the files to the server, but when I access the URL nothing appears. The Apache page appears, which is: Index of /apinova
, with nothing in the directory.