I am new to using git, and so apologize I'm missing something that should be obvious from the git book .
I would like to view the source code of a project after a git clone
, but all git-clone
does is download a .pack
files in ./objects/pack
. How do you extract a .pack
into the source code files?
What is the output path of git unpack-objects ?
Unless your upstream repo (the one you are cloning) is empty, you should see the content of its default branch ( usually master, unless its symbolic-ref has set to point to am empty branch) in your working tree:
git clone url/repoA
cd repoA
git branch # to see in which branch you are
Only git clone --bare would generate an empty working tree (since it would only create a git directory repoA.git, and no working tree at all).
您也可以尝试使用以下方法在主服务器上启动一个新的“ develop”分支:
git checkout develop
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.