开发者

how can i get the list of changes between two git hash remotely

I have two git hash i would like to get the log of all changes between them but this is happening on server I need a way to not make a local copy or it would involve a pretty involved procedure.

It was perfect when I use to do it with svn just having svn command line i could query it with a username for difference between two builds.

svn --username="b开发者_高级运维la" --password="bla" log http://svnrepository -r100:102

Can't a git repository remotely act like a server to me so I can execute this remotely?


I don't think this is possible. A diff running on remote versions would be incredibly slow compared to doing it locally and git tries to do things locally. The best you can do is to clone the repository and then diff between the two remote branches.

OTOH, you might be able to use some kind of git web interface to see diffs online.


If your repository is really so huge that this would be a win over just cloning the repository, I think you can do this with a script that uses git archive with its --remote option. You can easily alter this script along those lines to take a remote repository parameter.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜