Josh Bowden
Josh Bowden

Reputation: 1352

How Do I See All Merges Into Master on Remote

I am trying to see all of the merges into master in the remote repository via my command line. I am trying the command

git log --merges --first-parent master --oneline

But that isn't getting everything it seems. It only is getting things that happend locally. I have tried git fetch --all but that didn't seem to do anything.

Upvotes: 0

Views: 153

Answers (2)

jthill
jthill

Reputation: 60547

When you fetch from a remote, your repo updates its tracking refs, so origin's master branch shows up locally as refs/remotes/origin/master, which you can usually refer to just as origin/master.

git log --oneline --merges --first-parent origin/master

You combine any local work with upstream work however you like, the default is to merge, for carrying a patch series rebase is very popular with good reason. git pull is the convenience command for fetching and then doing as usual with what that got you.

Upvotes: 3

Arun Singh
Arun Singh

Reputation: 1

You can use below command for it.

git branch --merged master

Upvotes: 0

Related Questions