# \#git-clone

**URL:** https://discuss.bitrise.io/tag/git-clone/113.md

[Latest](https://discuss.bitrise.io/latest.md) · [Categories](https://discuss.bitrise.io/categories.md) · [Tags](https://discuss.bitrise.io/tags.md)

---

## [GIT\_CLONE\_COMMIT\_COUNT returns 1 instead of actual commit count](https://discuss.bitrise.io/t/git-clone-commit-count-returns-1-instead-of-actual-commit-count/22461)

<div class="topic-metadata">

**Author:** [@testing\_mudah](https://discuss.bitrise.io/u/testing_mudah)\
**Replies:** 1\
**Last updated:** [April 18, 2023, 5:02pm UTC](https://discuss.bitrise.io/t/git-clone-commit-count-returns-1-instead-of-actual-commit-count/22461 "2023-04-18T17:02:27Z")

</div>

Bitrise Build Issue Report template Description of the issue Our application makes use of git rev-list HEAD --count in our script to create a version number in our application. In version 8.0.1, this value returns 1. In …

---

## [Git clone step failing "merge: XXXX - not something we can merge"](https://discuss.bitrise.io/t/git-clone-step-failing-merge-xxxx-not-something-we-can-merge/22208)

<div class="topic-metadata">

**Author:** [@kalpeshp0310](https://discuss.bitrise.io/u/kalpeshp0310)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 3:18pm UTC](https://discuss.bitrise.io/t/git-clone-step-failing-merge-xxxx-not-something-we-can-merge/22208 "2023-02-14T15:18:58Z")

</div>

Git Clone step failing with “not something we can merge” error. Suddenly builds started failing at Git clone step. Environment: linux-docker-android-20.04 If on Bitrise.io: On Bitrise, Android & Docker on Ubuntu 20.04 …

---

## [Unexpected commit reported in Slack message](https://discuss.bitrise.io/t/unexpected-commit-reported-in-slack-message/21639)

<div class="topic-metadata">

**Author:** [@christopherma](https://discuss.bitrise.io/u/christopherma)\
**Replies:** 2\
**Last updated:** [November 28, 2022, 10:03am UTC](https://discuss.bitrise.io/t/unexpected-commit-reported-in-slack-message/21639 "2022-11-28T10:03:32Z")

</div>

I’ve got a pipeline that does something along these lines: check out the project (Project #1) from git (stash currently, soon to be github) using git-clone@6 step trigger specific workflow using bitrise-run@0.9 ste…

---

## [Git Clone Repository step results in problematic local branch states](https://discuss.bitrise.io/t/git-clone-repository-step-results-in-problematic-local-branch-states/19300)

<div class="topic-metadata">

**Author:** [@JonatanPlesko](https://discuss.bitrise.io/u/JonatanPlesko)\
**Replies:** 6\
**Last updated:** [October 28, 2022, 8:43pm UTC](https://discuss.bitrise.io/t/git-clone-repository-step-results-in-problematic-local-branch-states/19300 "2022-10-28T20:43:06Z")

</div>

The problem: There is an option to define if the Git Clone Repository step should merge the PR’s source and destination to validate the code state as it will be after the PR merge. We prefer to have that option set to …

---

## [Detect merge conflicts early](https://discuss.bitrise.io/t/detect-merge-conflicts-early/8093)

<div class="topic-metadata">

**Author:** [@jpalten](https://discuss.bitrise.io/u/jpalten)\
**Replies:** 6\
**Last updated:** [July 18, 2022, 10:24pm UTC](https://discuss.bitrise.io/t/detect-merge-conflicts-early/8093 "2022-07-18T22:24:28Z")

</div>

I added a script in my workflow, to make merge conflicts visible early in the development process. Perhaps this can help others too. For each commit, I’d like to know if it could cause merge conflicts to (in my case) d…

---

## [Can I make Bitrise CLI to clone automatically the project locally to run it?](https://discuss.bitrise.io/t/can-i-make-bitrise-cli-to-clone-automatically-the-project-locally-to-run-it/20036)

<div class="topic-metadata">

**Author:** [@josev](https://discuss.bitrise.io/u/josev)\
**Replies:** 1\
**Last updated:** [May 25, 2022, 6:43am UTC](https://discuss.bitrise.io/t/can-i-make-bitrise-cli-to-clone-automatically-the-project-locally-to-run-it/20036 "2022-05-25T06:43:46Z")

</div>

Hello everyone. I have a project running on bitrise.io that works fine. But I’d like to build that same project locally. In a similar way that is working on bitrise.io, but locally. What I’m trying to do is the followi…

---

## [Git Clone Repository step results in problematic local branch state](https://discuss.bitrise.io/t/git-clone-repository-step-results-in-problematic-local-branch-state/19861)

<div class="topic-metadata">

**Author:** [@JonatanPlesko](https://discuss.bitrise.io/u/JonatanPlesko)\
**Replies:** 0\
**Last updated:** [April 14, 2022, 12:28pm UTC](https://discuss.bitrise.io/t/git-clone-repository-step-results-in-problematic-local-branch-state/19861 "2022-04-14T12:28:57Z")

</div>

The problem: There is an option to define if the Git Clone Repository step should merge the PR’s source and destination to validate the code state as it will be after the PR merge. We prefer to have that option set to …

---

## [Git-clone/submodule update hangs indefinitely](https://discuss.bitrise.io/t/git-clone-submodule-update-hangs-indefinitely/18983)

<div class="topic-metadata">

**Author:** [@GermanVelibekovHouzz](https://discuss.bitrise.io/u/GermanVelibekovHouzz)\
**Replies:** 0\
**Last updated:** [December 27, 2021, 12:24pm UTC](https://discuss.bitrise.io/t/git-clone-submodule-update-hangs-indefinitely/18983 "2021-12-27T12:24:54Z")

</div>

Description of the issue Starting from yesterday, we have been experiencing indefinite hangs on Git Clone step. We limited the clone step to the last commit for both repo and submodule. While it seems like it solved the …

---

## [Partial clones for git repos](https://discuss.bitrise.io/t/partial-clones-for-git-repos/15383)

<div class="topic-metadata">

**Author:** [@dseither](https://discuss.bitrise.io/u/dseither)\
**Replies:** 3\
**Last updated:** [November 24, 2021, 5:34pm UTC](https://discuss.bitrise.io/t/partial-clones-for-git-repos/15383 "2021-11-24T17:34:43Z")

</div>

Description of the feature request To save time while cloning a bigger git repository, I’d like the Git Clone Repository action to support blobless and/or treeless clones. This boils down to running git clone --filter=bl…

---

## [Git clone is failed with netrc setup](https://discuss.bitrise.io/t/git-clone-is-failed-with-netrc-setup/18101)

<div class="topic-metadata">

**Author:** [@kunaExchange](https://discuss.bitrise.io/u/kunaExchange)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 6:05pm UTC](https://discuss.bitrise.io/t/git-clone-is-failed-with-netrc-setup/18101 "2021-09-24T18:05:32Z")

</div>

Hi! Having a problem with git-clone step along with netrc gitlab authentication setup. git-clone failes with error: remote: HTTP Basic: Access denied remote: You must use a personal access token with 'read\_repository' …

---

## [Unable to clone from privately hosted repositories](https://discuss.bitrise.io/t/unable-to-clone-from-privately-hosted-repositories/16998)

<div class="topic-metadata">

**Author:** [@birensz](https://discuss.bitrise.io/u/birensz)\
**Replies:** 0\
**Last updated:** [May 28, 2021, 6:44am UTC](https://discuss.bitrise.io/t/unable-to-clone-from-privately-hosted-repositories/16998 "2021-05-28T06:44:06Z")

</div>

recently we started exploring bitrise , we are facing some issue in cloning the repo our repository is hosted in self-hosted bitbucket attachin the logs \`Agent version: 1.24.3 Hostname: prd-atl-std-g-xcode-12-210527…

---

## [Xcode test step fails due to wrong path to source](https://discuss.bitrise.io/t/xcode-test-step-fails-due-to-wrong-path-to-source/15951)

<div class="topic-metadata">

**Author:** [@andreashorberg](https://discuss.bitrise.io/u/andreashorberg)\
**Replies:** 0\
**Last updated:** [February 26, 2021, 3:03pm UTC](https://discuss.bitrise.io/t/xcode-test-step-fails-due-to-wrong-path-to-source/15951 "2021-02-26T15:03:18Z")

</div>

Hi, I’ve tried to use the Xcode test step for one of our frameworks instead of using Fastlane. After cloning the repo I get a path like /Users/Foo/git/ from the $BITRISE\_SOURCE\_DIR variable which looks fine. When the t…

---

## [Clone repository from private gitlab forks](https://discuss.bitrise.io/t/clone-repository-from-private-gitlab-forks/13532)

<div class="topic-metadata">

**Author:** [@ApolloWL](https://discuss.bitrise.io/u/ApolloWL)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 5:10pm UTC](https://discuss.bitrise.io/t/clone-repository-from-private-gitlab-forks/13532 "2020-07-08T17:10:45Z")

</div>

Hello, I’m creating a bitrise app for a private self-hosted gitlab repository. We have a fork-flow for Merge Request and when builds are triggered by webhook, git-clone fails to clone both repositories: / git "remote"…

---

## [Merge request failure on git-clone step (Gitlab Private Repo)](https://discuss.bitrise.io/t/merge-request-failure-on-git-clone-step-gitlab-private-repo/13198)

<div class="topic-metadata">

**Author:** [@raquezha](https://discuss.bitrise.io/u/raquezha)\
**Replies:** 3\
**Last updated:** [June 25, 2020, 9:38am UTC](https://discuss.bitrise.io/t/merge-request-failure-on-git-clone-step-gitlab-private-repo/13198 "2020-06-25T09:38:24Z")

</div>

NOTE: This is the same issue reported here: Gitlab merge request failure on git-clone step (if PR is sent from a private fork) but it is now closed. Git-clone fails when PR is sent from private fork (Github) – all G…

---

## [Cloning more than one private repo](https://discuss.bitrise.io/t/cloning-more-than-one-private-repo/9462)

<div class="topic-metadata">

**Author:** [@luluminshall](https://discuss.bitrise.io/u/luluminshall)\
**Replies:** 2\
**Last updated:** [July 3, 2019, 10:01am UTC](https://discuss.bitrise.io/t/cloning-more-than-one-private-repo/9462 "2019-07-03T10:01:02Z")

</div>

Hi there, We recently updated one of our iOS projects to access two of our private SDK’s. I’m currently using the the Do Anything with Scripts step to clone the repos as follows pod repo add gitlab-repo ssh://git@gitl…

---

## [Git Clone Repository step is selecting the wrong branch](https://discuss.bitrise.io/t/git-clone-repository-step-is-selecting-the-wrong-branch/8966)

<div class="topic-metadata">

**Author:** [@RodolfoAntoniciZup](https://discuss.bitrise.io/u/RodolfoAntoniciZup)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 7:38am UTC](https://discuss.bitrise.io/t/git-clone-repository-step-is-selecting-the-wrong-branch/8966 "2019-05-10T07:38:40Z")

</div>

My Git Clone Repository step is mapped to be triggered every time something is merged by pull request to development branch, after the merge request is accepted the merged branch is automatically deleted and this step se…

---

## [What is my IP for Bitrise server?](https://discuss.bitrise.io/t/what-is-my-ip-for-bitrise-server/8549)

<div class="topic-metadata">

**Author:** [@jCastroBillpocket](https://discuss.bitrise.io/u/jCastroBillpocket)\
**Replies:** 1\
**Last updated:** [March 26, 2019, 9:20am UTC](https://discuss.bitrise.io/t/what-is-my-ip-for-bitrise-server/8549 "2019-03-26T09:20:12Z")

</div>

Hi, i want to know what is the IP or IP range to add it to an white list in my Bitbucket. it is possible?

---

## [Unpredictable Git Clone Times](https://discuss.bitrise.io/t/unpredictable-git-clone-times/8468)

<div class="topic-metadata">

**Author:** [@keehun-homespotter](https://discuss.bitrise.io/u/keehun-homespotter)\
**Replies:** 2\
**Last updated:** [March 20, 2019, 11:56am UTC](https://discuss.bitrise.io/t/unpredictable-git-clone-times/8468 "2019-03-20T11:56:25Z")

</div>

Dear Bitrise, I’m running into an issue where sometimes my git clone step takes 30+ minutes and other times takes 90 seconds. It’s a rather large repository, but I do make full use of cache:pull and cache:push. Is there…

---

## [Git clone slowness after upgrading to Elite plan](https://discuss.bitrise.io/t/git-clone-slowness-after-upgrading-to-elite-plan/5069)

<div class="topic-metadata">

**Author:** [@nebil](https://discuss.bitrise.io/u/nebil)\
**Replies:** 5\
**Last updated:** [May 18, 2018, 9:50am UTC](https://discuss.bitrise.io/t/git-clone-slowness-after-upgrading-to-elite-plan/5069 "2018-05-18T09:50:23Z")

</div>

Hi, we have recently requested the Elite plan trial. We have noticed a significant improvement on the build, however we also noticed sometime the git clone steps takes ages to run (more then 25 minutes). This used to a…

---

## [Keybase git support](https://discuss.bitrise.io/t/keybase-git-support/3975)

<div class="topic-metadata">

**Author:** [@hhur25](https://discuss.bitrise.io/u/hhur25)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 12:49pm UTC](https://discuss.bitrise.io/t/keybase-git-support/3975 "2018-01-31T12:49:16Z")

</div>

Description of the feature request We are using the team git repos from Keybase. I was able to create a CI user and clone from my repo, however, I can’t do that from Bitrise without the keybase helper: I couldn’t find…

---

## [PR mode builds failing - auth error 128, but CI mode builds are ok](https://discuss.bitrise.io/t/pr-mode-builds-failing-auth-error-128-but-ci-mode-builds-are-ok/3550)

<div class="topic-metadata">

**Author:** [@fmedlin](https://discuss.bitrise.io/u/fmedlin)\
**Replies:** 9\
**Last updated:** [December 23, 2017, 7:56am UTC](https://discuss.bitrise.io/t/pr-mode-builds-failing-auth-error-128-but-ci-mode-builds-are-ok/3550 "2017-12-23T07:56:41Z")

</div>

The error is on the git-clone step; doesn’t seem to matter which version remote: Invalid username or password. fatal: Authentication failed for ... exit status 128 Failing builds are always PR merge builds version: 1.…

---

## [Git clone - does not fast forward to the lastest of a branch](https://discuss.bitrise.io/t/git-clone-does-not-fast-forward-to-the-lastest-of-a-branch/3553)

<div class="topic-metadata">

**Author:** [@billsched](https://discuss.bitrise.io/u/billsched)\
**Replies:** 5\
**Last updated:** [December 23, 2017, 7:55am UTC](https://discuss.bitrise.io/t/git-clone-does-not-fast-forward-to-the-lastest-of-a-branch/3553 "2017-12-23T07:55:19Z")

</div>

Hi! I am using the build steps described here: How to Cache the Source Code directory I’ve only have scheduled build setup (no web hooks or trigger). When the workflow runs, git-clone is always stuck at the same commi…
