Questions tagged [git-ls-remote]

git-ls-remote lists references in a remote git repository. It displays references and the associated commit IDs.

15 questions
6
votes
2 answers

What is the definition of `pattern` for git ls-remote?

What type of "pattern" does git ls-remote take? man git-ls-remote says: ... When unspecified, all references, after filtering done with --heads and --tags, are shown. When ... are specified, only references …
Tom Hale
  • 40,825
  • 36
  • 187
  • 242
4
votes
4 answers

git ls-remote --tags: how to get date information?

I am using git ls-remote --tags to get the tags from a repository. However, it doesn't provide any date information. So I wonder if there is any way to get tags with date information without cloning the whole repository. I already check the…
Rick.X
  • 513
  • 5
  • 10
4
votes
1 answer

git (ls-remote) - List "remote" branches ordered by creation date

I know that with the git command below I can list all my "remote" branches... [someone@someone-pc somerepo]$ git ls-remote Username for 'https://somegit.com': someone Password for 'https://someone@somegit.com': From…
Eduardo Lucio
  • 1,771
  • 2
  • 25
  • 43
3
votes
0 answers

Is it possible to deactivate ls-remote check in NPM?

I trying to use npm packages behind artifactory system and corporative proxy settings, every time that I try to load the vue-select package (but not limited to it), all packages are downloaded from artifactory repository, but executes the following…
h3nr1ke
  • 363
  • 6
  • 19
2
votes
1 answer

Is there a way to find if a commit/sha present on remote Git server without cloning

At the moment I use git ls-remote to check if a some changes are present on Gerrit server. But not all changes are can be checked is way, particularly merges which do not appear in git ls-remote output. How can I check if a change is present on Git…
kanna
  • 1,412
  • 1
  • 15
  • 33
2
votes
2 answers

How to compare local and remote git files?

I need to list all tracked commited files that only exist locally. Let's say my local repo is a commit forward the remote repo (on github or gitlab) and these are my local tracked commited files: a.txt b.txt Now imagine in my remote repo there is…
Fernando Costa
  • 669
  • 1
  • 9
  • 31
2
votes
1 answer

Why doesn't git ls-remote list all the remote refs?

I have a remote repo (origin) whose refs directory contains, in addition to the usual heads, tags, and remotes subdirectories, also keep-around and merge-requests. These are special sets of refs that are managed by Gitlab for its internal…
Mark Dominus
  • 1,726
  • 12
  • 38
1
vote
2 answers

How do `ls-remote --refs` vs. cloning then `describe --tags` relate?

Listing the most recent tag of a remote repository produces a different answer from cloning that repository and then describing its tags. E.g. $ ​git ls-remote --refs git://git.kernel.org/pub/scm/git/git.git | tail…
Jason Hemann
  • 327
  • 1
  • 12
1
vote
2 answers

How to git ls-remote tags in a specific branch

Before cloning a repository, I want to list all the tags in the master branch to filter and finally retrieve a subset of required commits without transferring any additional data. Is it possible to use git ls-remote to list all tags in a particular…
aboger
  • 2,214
  • 6
  • 33
  • 47
0
votes
1 answer

Git cannot checkout remote branch despite `git ls-remote origin` showing it exists

I'm struggling to checkout a remote branch that I know it exists, because it show up with git ls-remote: $ git ls-remote 242d56fbd8d8af67df3157bd047252f5580e3df8 HEAD 242d56fbd8d8af67df3157bd047252f5580e3df8 refs/heads/master …
Cornelius Roemer
  • 3,772
  • 1
  • 24
  • 55
0
votes
1 answer

Is git ls-remote able to use GITHUB variables? Error: Process completed with exit code 2

Actions code: jobs: build: runs-on: ubuntu-latest steps: - name: Checkout codes uses: actions/checkout@v2 - name: Test git for actions shell: bash run: | ## use GitHub variables, such as:…
UKun
  • 3
  • 2
0
votes
1 answer

Grep for the Latest Release Version of a git Repo

Doing this to get the latest release version from the Docker Compose git repo gets the latest version without a v prefix in the release tag, but I need the v prefix to be included if the release tag contains it. COMPOSE_VERSION=`git ls-remote…
gameveloster
  • 901
  • 1
  • 6
  • 18
0
votes
0 answers

How can I grab specific SHA-1 hashes from remote repositories?

This script iterates multiple Git repositories in order to get their latest commit SHA-1 per branch. These commands are launched inside an arbitrary .git directory, so Git commands can be invoked without actually cloning any other repository. git…
Sovenique
  • 21
  • 3
0
votes
1 answer

Why do git ls-remote and git ls-files fail with some relative paths?

Suppose I have a git repo at ~/dev/company/products/company-common. From several other filesystem location I try to execute ls-files or ls-remote on that repo. All work, except for the last one. What could be a reason the last one doesn't…
Confusion
  • 16,256
  • 8
  • 46
  • 71
0
votes
1 answer

Cannot get git ls-remote list and no error at stdout

I'm executing git ls-remote ssh://git@git_repo:port * in two different computers under same network, one Linux another Windows, and on Windows I'm getting the list but on Linux not. No error at all just and empty list on Linux. Both has the SSH key…
Idemax
  • 2,712
  • 6
  • 33
  • 66