svn 같은 서버형 형상 관리 툴은 로그 보기를 하면 서버 기준으로 보이는데 git 은 로컬 기준이 기본이다.

> git log origin

remote origin 에 누가 무슨 작업을 해놨는지 확인하려면 콘솔에서 git log origin 을 치면 된다.

> git fetch
> git log FETCH_HEAD

아니면 fetch 만 받아서 FETCH_HEAD 로그를 보는 방법도 있다.

출처 : https://stackoverflow.com/questions/16315379/log-of-remote-history

 

Log of remote history

I have been asked to make a log of all the pushes made to a remote repository during a working day to display along side our build information. I am having trouble getting the necessary information...

stackoverflow.com

> gitk --remotes

기본 ui tool 인 gitk 를 주로 사용하는데 gitk 는 rev-list 파람을 따라간다. --remotes 옵션을 사용하면 remote 에 있는 모든 branch 가 보인다.  --remotes[=<pattern>] 형식으로 필터링할 수 있다는데 잘 모르겠다.

> git fetch
> gitk FETCH_HEAD

그래서 gitk 를 사용할 때도 fetch 받은 후에 FETCH_HEAD 를 파람으로 추가해서 확인하고 있다.

참고 : https://git-scm.com/docs/gitk/

 

Git - gitk Documentation

Displays changes in a repository or a selected set of commits. This includes visualizing the commit graph, showing information related to each commit, and the files in the trees of each revision.

git-scm.com

 

728x90

+ Recent posts