我是使用 git 的新手,所以很抱歉我遗漏了一些从git book中应该很明显的东西。
我想在 .a 之后查看项目的源代码,git clone
但git-clone
所做的只是下载.pack
. ./objects/pack
如何将 a 提取.pack
到源代码文件中?
git unpack-objects的输出路径是什么?
我是使用 git 的新手,所以很抱歉我遗漏了一些从git book中应该很明显的东西。
我想在 .a 之后查看项目的源代码,git clone
但git-clone
所做的只是下载.pack
. ./objects/pack
如何将 a 提取.pack
到源代码文件中?
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).
你也可以试试这个从master开始一个新的'develop'分支:
git checkout develop