git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* is there a trick to run commands on a remote repository
@ 2010-06-18 21:54 Gelonida
  0 siblings, 0 replies; only message in thread
From: Gelonida @ 2010-06-18 21:54 UTC (permalink / raw)
  To: git

Hi,


I'd like to get information from a remote git repository.

Example:
git branch -v

If the remote repository were remotehost:/a/long/path/repo.git m then I
could type

ssh remotehost "cd a/long/path/repo.git ; git branch -v"

If the remote repository were file://a/long/path/repo.git , then I had
to type
( cd /a/long/path/repo.git ; git branch -v )


I could write a script, which parses the repository name and executes
then the correct command.

I just wondered, whether git has already some bult in tricks, which
would help me avoiding to implement my own potentially faulty script.

I'm interested in executing 'read only' commands like

git branch
git log


thanks in advance for any suggestions

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-18 21:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-18 21:54 is there a trick to run commands on a remote repository Gelonida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).