Run `git log` on the remote branch

I need the output of git logthe git repository, but I don't want to clone the entire repository.

those. I want something semantically, as shown below.

git log git@github.com:username/reponame.git

If there is a way to do this, I also want it to be for git whatchanged

If github provides a simple solution for this, I would like to limit myself to only git repositories hosted on github.

+5
source share
5 answers

I think your solution is to simply look at the history on github.com. If you need git logto work from the command line, then you need your own repository clone.

, github API, /, .

0

, , , :

git clone --depth 100 ...
+3

, . git fetch FETCH_HEAD, .

git log FETCH_HEAD --decorate=full , HEAD, refs/origin/HEAD, .

git whatchanged FETCH_HEAD --decorate=full - , , , .

git diff HEAD FETCH_HEAD HEAD ,

git diff --stat HEAD FETCH_HEAD , , git pull.

, , git merge FETCH_HEAD. ( git pull, , )

+3

GitHub:

  • -API ( , )
  • "svn log", GitHub SVN- Git
+1

Unix :

ssh user@otherserver cd reponame.git '&&' git log

ssh user@otherserver cd reponame.git '&&' git whatchanged

, , , . , github, .

0

All Articles