如何验证我的推送成功?

时间:2017-02-06 14:25:25

标签: git

I pushed a feature branch to a remote repository.

如何验证远程存储库与我推送的内容完全相同,以便其他人可以拉出我的功能分支或将其合并到主服务器中?

感谢。

2 个答案:

答案 0 :(得分:1)

比较local/featureremote/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

如果您没有看到任何更改,则您的遥控器/功能将与本地/功能同步。

您也可以转到your repo's feture branch using browser,查看上一次提交是否与您本地功能的上一次提交相同。

答案 1 :(得分:0)

  

如何验证远程存储库与我推送的内容完全相同,以便其他人可以拉出我的功能分支或将其合并到主服务器中?

您可以使用git log并指定远程仓库和分支,例如:

$ git log origin/my-branch

如果您看到刚刚推入远程分支日志的提交,则推送成功。