I pushed a feature branch to a remote repository.
如何验证远程存储库与我推送的内容完全相同,以便其他人可以拉出我的功能分支或将其合并到主服务器中?
感谢。
答案 0 :(得分:1)
比较local/feature
和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
如果您没有看到任何更改,则您的遥控器/功能将与本地/功能同步。
您也可以转到your repo's feture branch using browser
,查看上一次提交是否与您本地功能的上一次提交相同。
答案 1 :(得分:0)
如何验证远程存储库与我推送的内容完全相同,以便其他人可以拉出我的功能分支或将其合并到主服务器中?
您可以使用git log
并指定远程仓库和分支,例如:
$ git log origin/my-branch
如果您看到刚刚推入远程分支日志的提交,则推送成功。