首页 > 其他分享 >git上传GitHub出现“fatal: The current branch master has no upstream branch.”的解决方法

git上传GitHub出现“fatal: The current branch master has no upstream branch.”的解决方法

时间:2023-03-29 11:14:02浏览次数:47  
标签:git no current GitHub master branch fatal

如题,是出现如下情况
image

看了不少博客、文章,但一直没有找到个解决方法。

然后好像只要
git push -u origin new
创建一个新的分支,就可以在新的分支上查看自己的代码了。

是在这篇文章里学到的,实际作用不太清楚,总之能跑就行.
git踩坑:fatal: The current branch master has no upstream branch.

标签:git,no,current,GitHub,master,branch,fatal
From: https://www.cnblogs.com/aduiduidui/p/17268166.html

相关文章

  • nvm常用命令切换node
     注意:nvm usenode版本时,要使用管理员权限打开cmd输入命令,否则报错 常用命令nvmls:列出所有已安装的node版本nvmls-remote:列出所有远程服务器的版本(官方node......
  • 使用flask中flask_script时,报错:ModuleNotFoundError: No module named 'flask._compat
    方法1:降级版本pipinstall"Flask==1.1.4"pipinstall"werkzeug==1.0.1"方法2:不降级版本:可以尝试修改一下flask_script/__init__.py中from._compatimporttext_type......
  • Gnome快捷键
    GNOME快捷键通用快捷键Alt+F1类似Windows下的Win键,在GNOME中打开"应用程序"菜单(Applications)Alt+F2类似Windows下的Win+R组合键,在GNOME中运行应用程序Ctrl+......
  • github代理
    下载链接:https://steampp.net/然后勾选github,并设置为系统代理模式。(注意:在链接不上github时才使用,不然有时候会对电脑上其他应用有影响)......
  • nowcoder contest/911/F
    https://ac.nowcoder.com/acm/contest/911/F  值域上维护右括号的个数,遇到左括号就查询前面有几个右括号#include<iostream>#include<algorithm>#include<queue......
  • [NOI1999] 生日蛋糕
    看题洛谷传送门(食用更佳)点击查看复杂的题目题目背景数据加强版link示例图:样例#1样例输入#11002样例输出#168ok,开始愉快的AC之旅第一步:预处理定......
  • npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and
    [email protected]:core-js@<3.23.3isnolongermaintainedandnotrecommendedforusageduetothenumberofissues.BecauseoftheV8engine......
  • P1005 [NOIP2007 提高组] 矩阵取数游戏
    思维题:显然每个行可以互相独立来处理。贪心和暴力显然都不容易处理这题,所以我们只能考虑dp。每次只能取最左边和最右边的数,这显然很符合区间dp的特点。所以我们令dp[i]......
  • Detecting novel systemic biomarkers in external eye photos
    FRIDAY,MARCH24,2023PostedbyBorisBabenko,SoftwareEngineer,andAkibUddin,ProductManager,GoogleResearch Lastyearwepresented results demo......
  • AuthenticationResult does not contain refresh token
    c#-GetrefreshtokenadditionallytoaccesstokenwithMicrosoft.Identity.Client-StackOverflowMSAL.NETdoesnotexposerefreshtokens,forsecurityrea......