git-clone

git clone without objects to do git log

拜拜、爱过 提交于 2019-12-22 07:57:11
问题 How can I clone a git repository without getting the actual files and all their revision deltas? I only want to be able to do git log | grep , no need to access files' contents. I would like to skip this part of the cloning: Receiving objects: 12% (359112/2981072), 432.66 MiB | 1.67 MiB/s There are some repositories whose logs I want to grep, but without downloading/checking out the whole repository, because they weigh gigabytes. Even a solution where I only get a single branch's logs (e.g.

How do I clone a local repo with submodules?

我的未来我决定 提交于 2019-12-22 07:51:08
问题 Say I recursively clone a repo. $ git clone --recursive ssh://server/project/client Cloning into 'client'... remote: Counting objects: 191, done remote: Finding sources: 100% (191/191) remote: Total 191 (delta 53), reused 159 (delta 53) Receiving objects: 100% (191/191), 27.59 KiB | 0 bytes/s, done. Resolving deltas: 100% (53/53), done. Checking connectivity... done. Submodule 'gui' (ssh://server/project/client/gui.git) registered for path 'gui' Cloning into 'gui'... remote: Counting objects:

How to use SSH instead of HTTP for Git submodules?

白昼怎懂夜的黑 提交于 2019-12-22 06:48:04
问题 Why are people having this problem? $ git clone --recursive git@github.com:acani/Chats.git Cloning into 'Chats'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. https://github.com/acani/Chats/issues/53#issuecomment-118014684 I've read some answers that say to change the submodule URL from SSH to HTTP, but why should I have to do that. I don't want to do that. I want to keep it SSH so

git clone: warning: --depth is ignored in local clones; use file:// instead

冷暖自知 提交于 2019-12-22 03:22:09
问题 We have a remote repository on a shared folder in our local network. I attempted to make a shallow clone: git clone --depth 1 //gitrepos-pc/git/foo/ It gave me this warning, and made a full clone: warning: --depth is ignored in local clones; use file:// instead. 回答1: Ok, after some experimenting I got it, I had to use git clone --depth 1 file:////gitrepos-pc/git/foo/ It had to be 4 slashes, not 3, which was a bit unexpected. I am still not sure why it insists on file://// but I guess it's

error: git checkout-index: unable to create file

痞子三分冷 提交于 2019-12-22 01:46:06
问题 What I am trying to do is a git clone on windows, but the parent repository exists in a unix machine. Am cloning using ssh to get a clone from UNIX to windows, and I get this weird error. error: git checkout-index: unable to create file <filename> This happens during the checkout step of a git clone. Can anyone help me? 回答1: The answer should be:we can't create a file named aux.c in windows! See http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx Do not use the

Make a local Git repo from master based with Zend Repo as Origin

余生长醉 提交于 2019-12-21 21:39:05
问题 I would like to make a clone of a master branch on the test server where we have the master branch and the test site running. This repo is a Zend PHP Framework Application. In the config file @ /home/me/public_html/domain.com/ZendSkeletonApplication/.git/config I have now: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = git://github.com/zendframework/ZendSkeletonApplication.git [branch

Cloning git repository Failure

安稳与你 提交于 2019-12-21 12:24:15
问题 When i try to clone following from repository: git clone git://gitorious.org/qt/qt5.git qt5 i'm getting this error: fatal: Unable to look up gitorious.org (port 9418) (This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. ) What's the problem? another thing that my network use proxy and i have already set it: git config --global http.proxy http://192.168.0.7:8080 回答1: Try first with an https

git checkout new remote branch when cloning with depth 1 option

瘦欲@ 提交于 2019-12-21 05:17:35
问题 After I did a clone of a repo, a new branch test has been added to the origin remote. But I still see: $ git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master What git command/s should I use to get the following output: $ git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master remotes/origin/test The git checkout remote branch question is not my question because that is happening after I see all the remote branch references. I cannot clone

Git: How to clone a 3rd party library into a subdirectory of my app's repository?

浪尽此生 提交于 2019-12-21 04:07:25
问题 I'm trying to figure out the proper way to clone a 3rd party library (engage.iphone from Janrain) into my own app's directory structure in a way that will let me pull the latest changes and merge them with any changes that I make locally. I also want the 3rd party library (merged with my changes) to be included in the git repo for my own app when I push it. Structure would be something like this: myApp/ <- this is my app, which is its own git repo external/ engage.iphone/ <- this is the 3rd

git clone heroku ssh permission denied

谁说胖子不能爱 提交于 2019-12-18 12:54:10
问题 I just bought a new computer and I am trying to clone my heroku project on it. Here's what I've done so far. I didn't include the trace, but everything was saved in the right place, and the functions ran without errors. >> sudo ssh-keygen >> heroku keys:add >> sudo git clone -o heroku git@heroku.com:myapp.git Initialized empty Git repository in /Users/macuser/Sites/shwagr/shwagr/.git/ Permission denied (publickey). Then I heard about doing it through ssh bash.. >ssh-agent bash >ssh-add ~/.ssh