Questions tagged [shallow-clone]
82 questions
1
vote
1 answer
Is any way to git shallow clone in SourceTree
I am now working with a little large repository. My current solution is shallow clone in the Terminal first, and then drag my folder into SourceTree, is there any way to setting in the SourceTree ??

Stephen Chen
- 3,027
- 2
- 27
- 39
1
vote
2 answers
git clone : by default shallow or not?
My initial understanding of git was it being meant (at least initially) to be a decentralised VCS (allowing for example fully-offline work and even cloning a repo from another offline repo ...).
This was, still per my initial understanding, the…

ptpdlc
- 2,373
- 6
- 22
- 33
1
vote
1 answer
Deployment failed on codeship due to shallow clone
Codeship pulls a clone with a depth of 50 to speed up the build process. We had a pull request that was over 50 commits (uncommon but happens) and our deployment to catalyze failed with the following error:
Warning: Permanently added '

arenfroe
- 23
- 7
1
vote
1 answer
Rebase branch with 1 file added on shallow clone?
I've forked Homebrew, branched to add a formula, and pushed to my fork.
Now I'm on a new machine, my fork is several (tens, hundreds, thousands of) commits behind.
The local Homebrew repo is thus a shallow clone, where my branch occurs in the…

OJFord
- 10,522
- 8
- 64
- 98
1
vote
0 answers
Git Pull Remote Branch using Shallow Clone
I have done the git shallow clone. Since one of the git projects where I work is around more than 2Gb and I don't have to pull every branch and old data.
I pretty much clone the master branch only and then updated git config to pull my branches from…

RaceBase
- 18,428
- 47
- 141
- 202
1
vote
1 answer
Clone a git repo without history and have the original repo be able to push changes to the shallow repo
Here's the scenario. I have a repository A that has a TON of history and revisions that I don't want in this other repository, B. How can I sync the two without moving over the entire history.

Richie Rich
- 643
- 1
- 8
- 17
1
vote
2 answers
How do I shallow clone an instance that does not implement Cloneable?
My framework handles domain objects of any class. I need to be able to shallow clone such a domain object instance foo, as if it implemented Cloneable (which it doesn't) and I called Object.clone() on it which returns a shallow clone.
Things that do…

Geoffrey De Smet
- 26,223
- 11
- 73
- 120
0
votes
1 answer
deepen a git history to reach the last commit to a given path
I regularly want to get a few files from a large repository that has a huge number of tiny files and very frequent changes to parts of them.
Ideally I'd just fetch a shallow clone with -n and then check out just the directory containing the files I…

RJVB
- 698
- 8
- 18
0
votes
0 answers
Redux rendering issue with custom equality check function
I am new to redux. I wanted to learn redux so that I can manage the rerendering issue of react.
This is how I am getting value from the useSelector hook.
const fields = ['title', 'description', 'date', 'country', 'budget', 'link'];
const job…

MD. Jayeen Bin Alam
- 21
- 5
0
votes
0 answers
How can I diff a remote branch while in a shallow checkout?
While in a shallow clone of a single commit, is it possible to diff the current checkout to a remote?
Shallow checkout:
$ git init
$ git remote add origin
$ git fetch --force --tags --prune --prune-tags --progress…

harmstyler
- 1,381
- 11
- 20
0
votes
3 answers
Eclipse - how to git clone --depth 1
I have to import a quite big (bitbucket) git repository in Eclipse.
Right now Eclipse is stuck cloning from an hour.
To speed up things I'd like to clone it in "shallow" mode (just taking the last commit).
I tested this with the CLI git clone…

DDS
- 2,340
- 16
- 34
0
votes
1 answer
invalid object name master~1 in our Jenkins is causing infinite version bump
We haven't changed anything in our Jenkinsfile or Fastfile, however all of a sudden we're seeing this in our logs.
invalid object name master~1
It's causing an infinite auto-bump.
We use this function in our Fastffile to check whether or not we…

mfaani
- 33,269
- 19
- 164
- 293
0
votes
0 answers
I need to merge 2 branches of a git repo, but shallow branch history is causing conflicts with a submodule ref (even when I deepen the history)
I'm having issues with merging branches of a shallow clone, and I can't seem to work my way through the steps required to make it happen. This one's a real git puzzler, and I look forward to finding someone who knows how to work this out.
I've…

aormsby
- 126
- 5
0
votes
1 answer
git: delete grafted branch
I am facing an issue with git. I have a shallow copy of remote repo. In my copy there was two branches cloned. There were grafted i.e. truncated by depth, so while one branch is based on another, in my shallow clone they are independent. One day…

krenix
- 1
- 3
0
votes
1 answer
Fetch specific commit fails in shallow repositories
I've a shallow clone of a submodule repository where the desired commit is on an unrelated branch to the HEAD commit.
git submodule update --init --depth 1
This works for most submodules, but the ones, where HEAD has an unrelated history to the…

Hadl
- 13
- 2