fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream U201814580 master To have this happen automatically for branches without a tracking upstream, see 'push.autoSetupRemote' in 'git help config'.
时间: 2024-02-18 09:00:07 浏览: 23
}</td>
<td>
<a href="student?action=edit&id=${student.id}">编辑</a>
<a href="student?action=delete&id=${student.id}">删除</a>
</td>
</tr>
</c:这是一个 Git 命令的提示信息,意思是当前分支 master 没有远程跟踪分支。为了推forEach>
</table>
<br>
<a href="add.jsp">添加学生</a>
</body>
</html送当前分支并将远程分支设置为上游分支,需要使用命令 git push --set-upstream U201>
```
另一个名为 "edit.jsp",用于编辑学生的信息,代码如下:
```
<%@ page814580 master。如果希望自动为没有跟踪上游分支的分支设置远程跟踪分支,请参考 git help config 中的 push.autoSetupRemote。
相关问题
fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream,
you can use the following command:
```
git push --set-upstream origin master
```
This command will push your current branch (master) and set the remote branch (origin/master) as the upstream branch.
fatal: the current branch main has no upstream branch. to push the current branch and set the remote as upstream, use git push --set-upstream origin main
这是Git命令行给出的一则警告消息,意思是没有与当前分支(main)关联的上游分支。如果想要推送当前分支并设置远程分支为上游分支,应该使用'git push --set-upstream origin main'命令。