2
I created a new project here and then uploaded it to the server, but when I try to access the repository via URL an Apache page with the name: Index of / site
, ie 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 Download all the files and I can view them on localhost. Why is this happening on the server? Why can’t I see the files on the server?
The repository was already on the server, but it still didn’t show the list of folders and files it contains there.
In working on server that works on the local network, I delete the old project that was on the server and then sent my project to the same repository that was already created.
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 give the rm -fr
there I entered the URL and did 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
No error here -> updated repositorygit 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 the: Index of /apinova
, with nothing in the directory.
I don’t know. Can you [Edit] the question and add more details about the structure of your server? What commands do you want to use? How is the server organized? How is it configured? Etc.
– Woss
I tried to explain better.
– Lucas Lima
The repository is in the Apache root directory?
– Woss
@Lucas takes a test and then comments on the result. Delete any copy of the project, recreate it with the
git glone
as you do. Make a simple change. Apply thegit status
and take a print of the answer in the terminal and add the question.– DNick