How can I publish only "git log" only code for trunks?

At my workplace, we have a β€œmain” trunk line that represents the published code. To make changes, I look at the working copy, create a topic branch, commit it to the topic branch, merge the topic branch into a wizard and click.

For small changes, I can pass directly to the wizard, and then click.

My problem is that when I use "git log", I do not need my branches in my local working copy. I want to see changes in the main branch on a remote shared git server. What more, if I use --stat or -p or one of my friends, I want to see files and changes related to committing a merge, for mastering, not related to their original commits (which, as I said, don't want see at all).

How can I do it?

+5
source share
3 answers

This should do the trick:

git log origin/master

You can do first git fetchto pull all new commits from the remote end (this will not merge them into your local branches).

+3
source

, diff, , , --stat -p, , , .

git diff [--stat] origin/master...master

, ( ) / . "..." "..".

, "" , .

git diff [--stat] origin/master...
+1

git log --graph --oneline, , ( , ).

git -svn, git log --grep git-svn-id git -svn-id ( git, svn).

0
source

All Articles