我试图从Azure Git回购中提取一个文件。
但是如果我运行这个:git archive --remote="ssh.dev.azure.com:v3/[organization]/[project]/[repo]" master myfile
它返回一个错误:
remote: Could not find a Command Extension for Command:git-upload-archive
fatal: the remote end hung up unexpectedly
这种情况在Linux和Windows中都会发生。
另一方面,请注意,这些工作很好:
我在Windows Server2003上使用git/git遇到了一些问题(尽管我怀疑操作系统不是问题的根源)。
如果我这样做:
git clone git@server:test.git
我不能克隆:
Cloning into test...
git@server's password:
fatal: 'test.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
如果我这样做:
git clone git@server:repositories/
我是git的新手。我在一台有SSH访问权限的服务器上创建了一个裸存储库。如果我尝试将它克隆到我的工作站上,我会得到两种不同的结果:
% git clone ssh://me@example.com:git/foo.git
Cloning into 'foo'...
ssh: example.com:git: no address associated with name
fatal: Could not read from remote repository.
但是如果我删除ssh://,它就能正常工作:
% git clone me@example.com:git/foo.
我正在尝试克隆一个本地的git存储库。存储库的名称包含一个‘:’。这让我和git都很困惑。我得到以下错误:
~/work/c% git clone ../a::b .
Initialized empty Git repository in /home/user/work/c/.git/
ssh: Could not resolve hostname ../a: Name or service not known
fatal: The remote end hung up unexpectedly
你将如何转义‘:’?现在,我只需要更改原始存储库的名称:-)
我正在使用zshell...
我正试图将一个老的承诺分解为更多的提交。这个分支相当大,并且有更多的合并提交。简化:
HEAD
A---B---merge_commit---C---merge_commit---D
在上述情况下,我想将D拆分为两个提交。
我目前正在做:
git rebase -i D --rebase-merges
git reset HEAD~
'split into the two commits'
git commit 1
git commit 2
git rebase --continue
问题是,我在合并冲突中得到冲突,我尝试使用策略(ours,theirs),甚至手动,但是在重