简体   繁体   中英

Source code with project-name.git how do I checkout

I have this zip file. I have no idea how to checkout the source.

Here is the folder. git文件夹结构

As my understanding. Normally the git folder is .git. I am not sure how come it is like this.

I tried to rename the shiroproject.git to .git, and try to run git status then it prompted This operation must be run in a work tree

Can anyone help on this matter?

It looks like he may have sent you a zip of the bare repo . If so you will need to clone it to have normal git access to the files within. Try the following from the folder where shiroproject.git is located...

$ git clone ./shiroproject.git shiroproject
$ cd shiroproject
$ git status

您可以尝试将X.git目录视为远程目录,并对其进行git克隆,这将提取工作树,您应该会看到项目。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM