After building a Git repository in Alibaba Cloud, cloning it locally, modifying it and submitting it successfully, how can I view the added content in the remote repository?
大家讲道理
大家讲道理 2017-06-21 10:11:36
0
2
1001

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, and pushsuccess

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?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
学习ing

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

Peter_Zhu

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!