is there a trick to run commands on a remote repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]