SAP Web IDE 不显示远程分支

SAP Web IDE doesn't show remote branchese

我无法推送到远程存储库。

我按照列出的步骤操作 Using Source Control Guide

我可以毫无错误地进行提取。

当我拉取时,我收到以下消息:
Pull request failed Could not get advertised Ref for branch refs/heads/master

当我提交时,我收到以下消息:
Commit request failed Commit failed. Ref must be HEAD and is HEAD

当我尝试推送时,我看不到任何远程分支。

我确定我 git 的登录用户名和密码是正确的。

在他们的 3 月更新中,他们添加了 "Create Remote Branches in Git" 功能。

https://help.hana.ondemand.com/webide/frameset.htm?98fd3efb757d4e39b25740d2f3c83b61.html

试试这个配置来解决这个问题。

git config --unset branch.master.remote
git config --unset branch.master.merge

如果这不起作用,请确认 master 分支没有在远程服务器上被删除(误删)

要验证您是否跟踪了本地分支机构,请使用此选项。

# display the remote tracking branches of your local branches
gir branch -a -v

如果您的远程存储库上没有 master 分支,您可能会遇到拉取错误。您不能从不存在的分支中提取。

如果远程分支不存在,WebIDE 将不会显示远程。所以你将无法推动。您应该首先在遥控器上创建一个分支,然后尝试 push/pull.

您可以使用 git 客户端(如 git-scm)在本地执行此操作,然后将分支推送到远程。创建项目文件夹并在 terminal/command 提示符下导航至该文件夹。添加一些文件可能是 Readme.md & 运行 下面的命令。

git init   //Initialize the repository
git add -A //Add all files to the staging area
git commit -m "Initial Commit" //Commit all changes
git remote add origin https://github.com/YouUser/SampleApp.git    //Add your remote
git push origin master        //Push the branch 'master' to the remote repository

现在在 WebIDE 中添加遥控器 & 它应该会显示在遥控器中。

在他们的 3 月更新中,他们添加了 "Create Remote Branches in Git" 功能。

https://help.hana.ondemand.com/webide/frameset.htm?98fd3efb757d4e39b25740d2f3c83b61.html