shallow-clone Questions
5
Solved
Is it possible to shallow clone a specific commit in a repository, i.e. with depth 1? Something like
git clone http://myrepo.git 728a4d --depth 1
to get the repository state as it is at the comm...
Exposed asked 7/7, 2015 at 20:43
3
What I'm trying to do: test pull requests from github. I want to locally merge a pull request into master and run some tests on the result. Since the repository is huge, I do a shallow clone.
To b...
Torietorii asked 21/11, 2014 at 11:4
3
Solved
I'd like to clone a repository with a longish history. I'm only interested in a few short-lived not-yet-merged feature branches and master.
In order to not confuse myself with all that past histor...
Undine asked 2/9, 2018 at 19:50
2
My aim is to be able to both build recent versions of, and contribute to, a project that has a long and voluminous history - and to do this without using local storage to duplicate lots of historic...
Presumptuous asked 21/9, 2014 at 0:34
4
Solved
Most CI services provide a way to shallow clone a repository. For example, on Travis:
git:
depth: 1
or on AppVeyor:
clone_depth: 1
or
shallow_clone: true
This has the obvious benefit of spee...
Sigismund asked 7/7, 2015 at 20:2
1
I'm trying to unshallow a repository:
% /bin/git clone --shallow-since='3 years' 'https://github.com/RobertAudi/zsh-hooks'
Cloning into 'zsh-hooks'...
remote: Enumerating objects: 17, done.
remote:...
Kella asked 14/9, 2020 at 5:39
2
Is it possible to get the commit log history from a local copy which is a shallow clone (--depth = 1)
I am using shallow clone in my jenkins build job to get the code and build but the changelog i...
Loraleeloralie asked 11/5, 2015 at 2:52
1
Solved
I have class Foo and its member bar_ is a pointer to some data. Method modify modifies the data, but not the pointer itself. Therefore I can declare the method as const:
class Foo {
public:
Foo() ...
Underbred asked 28/6, 2020 at 20:5
3
Solved
I have a Jenkins server building a solution using MSBuild. Shallow Clone is not enabled (on Advanced Clone Behaviours), so I supposed it's getting all the last commits. And I'm using SonarQube to a...
Marinara asked 22/11, 2019 at 18:49
2
I create a shallow clone for a specified tag:
git clone --branch v0.1.3 --depth 1 file:///c/usr/sites/smc .
After this the cloned repo only has the tag v0.1.3 (and associated files) in it.
It do...
Archoplasm asked 18/6, 2014 at 20:20
2
I have "shallowed" a repo:
FIRST_COMMIT="bf450342272a94117d78eae34a140a2a39359dad"
git rev-parse ${FIRST_COMMIT} > .git/shallow
git fsck --unreachable
git gc --prune=now
Now I try to push:
!...
Siegfried asked 16/1, 2019 at 8:58
2
I am using Jenkins file to build a pipeline. I am trying to clone the reference repository using DSL like below.
checkout(
[$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleCon...
Andress asked 12/2, 2019 at 8:19
1
Solved
I learned that when using Object.assign() it extends only the top level object. How can I deeply extend the object? For example, let's say I have the following source object:
const source = ...
Shovel asked 9/4, 2018 at 6:32
1
Solved
I found a lot of questions/answers about cloning a repository and checking out a given commit ID immediately. Trivial approach:
git clone <URL> working-copy
cd working-copy; git checkout <...
Incorporating asked 8/9, 2017 at 13:45
6
Solved
I had a massive git repo because of a huge number of commits, so following advice here I created a shallow clone. I've made changes to this new local repo, and now I want to push to my origin at Gi...
Pellicle asked 7/7, 2012 at 12:38
1
I'd like to maintain a shallow, mirrored, bare clone of several branches. I will clone locally from that for different project branches. e.g.
+-----------------------------------------------------...
Heshum asked 21/2, 2015 at 12:12
1
Solved
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 clon...
Pashto asked 2/11, 2016 at 15:2
2
Solved
I would like to use git clone --depth [N] , but to use such N that guarantees that a particular sha is obtained.
How I can determine the depth of a sha of in a remote repo. Note cloning it locally...
Goshawk asked 8/10, 2016 at 17:56
3
Solved
After cloning a remote repository it does not show any remote branch by -a option. What could be the problem? How to debug it? In this snippet two of the remote branches are not shown:
$ git clon...
Filamentous asked 17/5, 2014 at 6:13
5
Solved
We use git to distribute an operating system and keep it upto date. We can't distribute the full repository since it's too large (>2GB), so we have been using shallow clones (~300M). However recent...
Lanitalank asked 14/10, 2013 at 3:0
3
Note that using --depth=1 parameter prevents you from pushing the project to a new repository.
Frigidaire asked 20/4, 2015 at 12:41
3
Solved
I have to work with an hg repository that has millions of lines of code and hundreds of thousands of changesets. As you can imagine, this really slows down mercurial and TortoiseHg.
Is it possibl...
Tatianatatianas asked 13/2, 2014 at 18:22
1
Solved
I know it's possible to have shallow submodules using the --depth option with git submodule update.
However, If I run
git submodule update --init --recursive --depth 1
on my project with ...
Antilog asked 28/11, 2014 at 12:40
1
Solved
If I clone a repository with max depth of 1 at a tag, it works and pulls down just that. If I then want to do a fetch with or without depth of 1 for a new tag, it does some processing, but the tag ...
Repentance asked 28/10, 2014 at 20:26
1
Solved
How do I shallow clone a git repository, so that my clone contains only 1 history item, and starts on a specific branch?
I know how to do a shallow clone:
git clone --depth 1 https://path/to/myre...
Tabanid asked 17/2, 2014 at 16:7
1 Next >
© 2022 - 2024 — McMap. All rights reserved.