William Entriken
William Entriken

Reputation: 39283

Which git commands have a <repository> parameter?

git clone takes a <repository> parameter per git help clone:

SYNOPSIS
   git clone [--template=<template_directory>]
             [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
             [-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
             [--dissociate] [--separate-git-dir <git dir>]
             [--depth <depth>] [--[no-]single-branch]
             [--recursive | --recurse-submodules] [--] <repository>
             [<directory>]

What is the full list of git commands that can be performed on a repository URL?

I am asking because I want to analyze remote repositories. Before I start a start scoping that out, and as a separate question, I am asking here about the git commands' capabilities.

Upvotes: 0

Views: 44

Answers (1)

tne
tne

Reputation: 7261

$ pwd
/usr/share/man/man1
$ zgrep -l '<repository>' git-*
git-clone.1.gz
git-fetch.1.gz
git-fetch-pack.1.gz
git-ls-remote.1.gz
git-pull.1.gz
git-push.1.gz
git-submodule.1.gz
git-subtree.1.gz

Upvotes: 1

Related Questions