[Git] Show logs for specific branch

If you have master merged into your current branch, your git log will be messy because it also shows the commits from the master.

If you want to show your branch logs, use the following command:

git log master..

or

git log master..mybranch

* git log a..b actually means “includes commits that are (backward) reachable from b but exclude those that are reachable from a”

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *