My Oracle Support Banner

git Unable to Clone From Tags in Oracle Linux 6 (Doc ID 2730634.1)

Last updated on NOVEMBER 25, 2020

Applies to:

Oracle Cloud Infrastructure - Version N/A and later
Linux OS - Version Oracle Linux 6.0 to Oracle Linux 6.9 [Release OL6 to OL6U9]
Linux x86-64
Linux x86-64 on Oracle Public Cloud


 In Oracle Linux 6, the git clone command does not work by specifying a tag:

git clone --branch <TAG> <REMOTE-GIT-REPOSITORY-URL>
Initialized empty Git repository in /tmp/site_refresh_package/.git/
Server supports multi_ack_detailed
Server supports side-band-64k
Server supports ofs-delta
want xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (refs/tags/<TAG>)
POST git-upload-pack (gzip 13378 to 6739 bytes)
warning: Remote branch <TAG> not found in upstream origin, using HEAD instead

It can be confirmed by the command:

git ls-remote --heads

that there in no branch named <TAG>, which is expected.

Original expectation was that git clone --branch <TAG> would clone the git repository files committed for the specified <TAG>




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.