The detailed description of the problem is as follows
1. After building the Git warehouse on Alibaba Cloud and cloning it locally, add abd.html, andpush
success
2. There are only index.html and abc.html
in the local warehouse
3. The content in the remote warehouse is different from the local one
4. Use another computer to clone the contents of the remote warehouse and you can find index.html and abc.html
5. How can I find the code I submitted (index.html and abc.html) in the remote warehouse?
First of all, the remote warehouse is a warehouse storage ending with . git, it is not a working copy. But you can do some simple operations, you must perform log, etc. To see the real file, you can only see it in the working copy, which means you need to clone it. If you append --mirror to clone, the cloned one will be the storage copy, not the working copy, and the directory structure you see will be the same as what you see on the remote server
Based on the Q&A on this site, what is the difference between git init and git init --bare? This article solved my doubts, thank you.