Unable to pull or push code on Looker UI using git actions.

huangapple go评论95阅读模式
英文:

Unable to pull or push code on Looker UI using git actions

问题

我正在开发我的个人分支中的视图和模型。之后,我尝试从生产环境中拉取代码并进行合并。但我无法合并它,它显示:有其他人对此分支进行了更改。需要拉取35个提交或合并拉取失败。

我尝试在Bitbucket上查看项目,然后将代码推送到个人分支并合并到主分支。我还尝试创建一个新分支。我可以使用Git命令创建新分支,但无法通过Looker UI的Git操作创建。在Looker上,显示了访问问题。

我期望我应该能够在UI上执行所有步骤,如合并、拉取或推送到生产环境等,之后创建的视图和模型应该对所有人可见。

英文:

I am developing the views and models in my personal branch. After that I am trying to pull the code from production and merge it. But I am not able to merge it, it says : Someone else has made changes to this branch. 35 commits to be pulled
or pull merge failed.

I tried to view project on bitbucket and then push the code to personal branch and merge to master. I have also tried creating a new branch. I am able to create new branch from git commands but not via Looker UI git actions. On Looker, it's showing access issues.
I expect that I should be able to follow all the steps on UI like merge and pull or push to production etc and views and models created after that should be visible to everyone.

答案1

得分: 1

我与Looker支持团队联系,并他们建议尝试重置Git连接,结果对我有效。
重置Git连接的步骤,请参考:https://cloud.google.com/looker/docs/best-practices/how-to-migrate-to-a-new-git-repo#simple_solution

英文:

I checked with Looker support and they asked to try resetting the git connection and it worked for me.
Steps to follow for resetting git connection : https://cloud.google.com/looker/docs/best-practices/how-to-migrate-to-a-new-git-repo#simple_solution

答案2

得分: 1

我成功解决了这个模糊的错误,最终原因是我的主分支与远程分支不同步。

为了解决这个问题,我在开发模式下切换到主分支,然后从生产分支拉取,然后切换回我的个人分支,这样我就能够顺利地从生产分支拉取更新。

英文:

I was able to resolve this vague error, which was ultimately caused by my Master/Main branch being out of sync with the remote.

To resolve, I switched to the Master/Main branch while in Development Mode, which was behind, pulling from production, then switching back to my personal branch, which allowed me to Pull from Production without issue.

huangapple
  • 本文由 发表于 2023年6月1日 01:03:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/76375842.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定