File pushed to Git remote server is not visible

Asked 2 years ago, Updated 2 years ago, 45 views

I wanted to run Git's remote server, so I installed ubunturinux on EC2 of AWS and created a Git server.

git init--bare--shared of var/www/html to enable clone, push from other terminals because pushed sources are immediately reflected in Apache for other purposes operating the Git server.

I added a user after this setting, and when I tried it, I was able to do a good job from other computers to clone, add, and commit push.However, when I connected to the remote server of EC2, I couldn't see the file pushed by /var/www/html (I couldn't find it even if I searched by find/'filename')

What's even more strange is that if you create another repository and clone it, the pushed file that is not visible in /var/www/html on the remote server will be checked out and seen normally.

I've been trying it all the time, but I'm not sure what's wrong.

As a concern,

That's about it.

Could you possibly tell me if you have had a similar experience? Thank you for your cooperation.

git

2022-09-30 16:55

1 Answers

git init with the --bare option creates a repository with only administrative information.If you want to be able to see the actual (managed) files, create a repository without --bare.


2022-09-30 16:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.