是否可以在没有git的情况下克隆存储库,在存储库的本地副本中创建.git文件夹?有点像只读功能?
我试图自动化我与Git构建脚本的交互,我遇到了以下问题.
这可以从命令行工作:
git clone git@github.xxxx.com:blablabla/reponame.git /Users/myname/dev/myfolder
Run Code Online (Sandbox Code Playgroud)
现在我想做同样的事情,但是从我的剧本开始.我有以下内容:
#/bin/bash
repository="git@github.xxxx.com:blablabla/reponame.git"
localFolder="/Users/myname/dev/myfolder"
git clone $repository" "$localFolder
Run Code Online (Sandbox Code Playgroud)
这给了我这个错误
GitHub SSH访问暂时不可用(0x09).致命:远程端意外挂断
任何关于此的亮点将非常感激
这是我第一次构建git服务器.当我使用TortoiseGit-1.8.1.0-32bit来处理操作时,一切都很好!
但是如果我使用git clone命令或git bash,那么git clone的处理速度是如此之慢.我附上了两张图片,显示了git clone下面的相对传输速度.
有人可以给我一些建议吗?


克隆过程中出现此错误
remote: warning: refname '4e810d87701e09df2949cb33e731052aa05d2c76' is ambiguous.
remote: Git normally never creates a ref that ends with 40 hex characters
remote: because it will be ignored when you just specify 40-hex. These refs
remote: may be created by mistake. For example,
remote:
remote: git checkout -b $br $(git rev-parse ...)
remote:
remote: where "$br" is somehow empty and a 40-hex ref is created. Please
remote: examine these refs and maybe delete them. Turn this message off by
remote: running "git …Run Code Online (Sandbox Code Playgroud) 我多次搜索这个问题,但仍然无法解决它.
假设我从user1分叉一个repo(命名为repo1),现在我想分叉repo1的wikipage,当你分叉回购时,github不会为你做这个.
我试过了:
git clone https://github.com/user1/repo1.wiki.git
git remote add my-fork https://github.com/myid/repo1.wiki.git
git push my-fork master
Run Code Online (Sandbox Code Playgroud)
但终端说:
fatal: remote error: access denied or repository not exported: /3/nw/32/2b/9e/135236793/71478887.wiki.git
Run Code Online (Sandbox Code Playgroud)
这意味着我无法成功地将这个本地wiki推送到我的分叉回购的wikipage.
有没有人对这里发生的事情有所了解?
谢谢.
我正在尝试使用访问令牌克隆 Bitbucket 服务器存储库(自托管),但是我找不到有关 Bitbucket 服务器 API 的任何文档。我的克隆网址是基于 ssh 的。
或者有没有办法使用 REST API curl 命令来克隆 bitbucket 服务器存储库?
我在https://bitbucket.org/上有一个回购
几天前由于一个错误,大量的图像文件被推入了回购.然后通过另一个推送删除文件.在那个回购工作正常之后,但是今天当我试图从回购中撤出时:
$ git pull
Password for 'https://repo@bitbucket.org':
warning: no common commits
remote: Counting objects: 4635, done.
remote: Compressing objects: 100% (1710/1710), done.
fatal: Out of memory, malloc failed (tried to allocate 4266852665 bytes)
fatal: index-pack failed
Run Code Online (Sandbox Code Playgroud)
我试过了:
1)git config --global pack.windowMemory 1024m
2)
$ git count-objects -v
count: 9
size: 48
in-pack: 4504
packs: 1
size-pack: 106822
prune-packable: 0
garbage: 0
Run Code Online (Sandbox Code Playgroud)
那里没有运气,不知道我接下来应采取什么行动......
回购的大小应该在10-20m左右.接下来我应该采取什么行动?
更新1
我执行了这些命令:
$ git filter-branch --index-filter 'git rm --cached --ignore-unmatch public/images/*' HEAD
Rewrite …Run Code Online (Sandbox Code Playgroud) 我在Git几乎是新手,只是从官方网站上阅读Git书.我尝试了解下一个案例之间的区别.
git init Project
git remote add Project [some-url]
Run Code Online (Sandbox Code Playgroud)
和
git clone [some-url]
Run Code Online (Sandbox Code Playgroud)
什么是更好的方法?
Git新手在这里.我在一个新的Ubuntu VM上设置git并尝试克隆一些repos.克隆适用于以下命令:
git clone http://github.com/organisation_name/repo_name
Run Code Online (Sandbox Code Playgroud)
(在提示输入用户名/密码后),但失败了
git clone git://github.com/organisation_name/repo_name
Run Code Online (Sandbox Code Playgroud)
并且
git clone git://github.com/organisation_name/repo_name.git
Run Code Online (Sandbox Code Playgroud)
使用相同的错误消息:
Cloning into 'repo_name'...
fatal: remote error:
Repository not found
Run Code Online (Sandbox Code Playgroud)
当然,显而易见的答案是"使用http方法",但我试图理解为什么一个有用而另一个没有.有什么建议?(.git在回购名称btw上使用扩展名时有什么区别吗?)
谢谢!
我是Git的新手.
我刚刚为Windows安装了Git(2.9.3)(10),然后我打开了git-bash并做了一个git clone <remoteURL>.使用远程存储库的整个副本创建一个新文件夹,这很好.但后来我运行了一个git status,我得到了大量的deleted文件(我想所有刚刚复制的文件)准备就绪to be committed,并且存储库文件夹下的三个主要文件夹是untracked.该deleted文件实际上我的驱动器上存在,但!
我很确定我的git状态应该是干净的.怎么了?
git-clone ×10
git ×9
bitbucket ×2
bash ×1
clone ×1
git-bash ×1
git-commands ×1
git-remote ×1
github ×1
http ×1
memory ×1
rest ×1
ssh ×1
tortoisegit ×1
wiki ×1