Tim
Tim

Reputation: 99428

How to verify my push is successful?

I pushed a feature branch to a remote repository.

How can I verify the remote repository has the exact same things as what I pushed, so that others can pull my feature branch or merge it into the master?

Thanks.

Upvotes: 0

Views: 4009

Answers (2)

Caleb
Caleb

Reputation: 124997

How can I verify the remote repository has the exact same things as what I pushed, so that others can pull my feature branch or merge it into the master?

You can use git log and specify the remote repo and branch, like:

$ git log origin/my-branch

If you see the commits you just pushed in the remote branch's log, then the push was successful.

Upvotes: 0

Sajib Khan
Sajib Khan

Reputation: 24156

Compare (see difference) between your local/feature and remote/feature.

$ git fetch                          # update local with remote changes
$ git checkout feature               # go to feature branch 

$ git diff origin/feature..feature   # show what is in feature that is not in origin/feature

If you don't see any change then your remote/feature is sync with local/feature.

You can also go to your repo's feture branch using browser and see if the last commit is same as your local feature's last commit.

Upvotes: 1

Related Questions