git push 报错fatal the current branch master has no upstream branch和Everything up-to-date
程序员文章站
2022-03-07 10:42:18
...
git push 之前先 git add .和git commit -m '描述性语言'(别让自己感觉自己很蠢。。。 哎)
1.fatal the current branch master has no upstream branch
建立远程分支关联即可 (本地远程master)
一种: git push --set-upstream https://gitee.com/huacong2504257840/zhugong_system.git master
另一种: git push -u origin master
另一种:
2.Everything up-to-date
git remote add origin 地址
原因:
1)没有git add .
2)没有git commit -m "提交信息"
上一篇: 微信新上线流量入口:“热议话题”
推荐阅读
-
fatal: The current branch master has multiple upstream branches, refusing to puh. git push error!
-
git push 报错fatal the current branch master has no upstream branch和Everything up-to-date
-
fatal: The current branch master has no upstream branch. To push the current branch and set
-
解决Git建立远程分支关联时fatal the current branch master has no upstream branch 问题
-
git提示fatal the current branch master has no upstream branch 问题
-
push出现问题:fatal: The current branch master has no upstream branch.
-
git踩坑:fatal: The current branch master has no upstream branch.