我是一个Git的新手。我一直在使用SVN,但是我正在处理的新项目存储在Git中。为单个分支设置Git
现在,我想在该存储库的单个分支上工作(让我们将其命名为'mybranch')(让我们假设www.example.com/project.git)。我已经做了以下内容:
git init
git clone -b mybranch --single-branch www.example.com/project.git
但是,当我这样做时,它重新加载整个分支:
git pull www.example.com/project.git mybranch
这需要永远的,因为已经有很多在那里。据我所知,它应该只是更新(取&合并)我有什么。像svn命令“更新”一样。
我一直在浏览教程和指导方针,现在已经有好几天了,我不知道这是怎么回事。
提前致谢!
- 编辑 - 我得到以下相关信息:
$ git branch -avv
回报什么,只是作为git remote -v
和git branch -a
$ git config --local -l
回报:
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
你能显示'git remote -v'和'git branch -a'的输出吗? –
@StasMakarov Thorse什么都不返回,请参阅编辑问题。 – Saftkeks