gitee本地项目push远程仓库方法

上面会有一个报错

如果报上买面的化,需要把项目先放入暂存区,

1,git add .存放暂存区

2,然后查看一下工作区   git status

出现下面这些绿色的,说明添加到了暂存区

 不能直接push远程仓库,需要先提交到本地仓库中,然后在push远程仓库

1,git commit -m "state",

2,出现白色的说明已提交到本地仓库中了

 1,git  checkout master //切换主分支

2,git status 查看状态

3.git push 然后就成功push到远程仓库了

 

 

PS D:\flutte\flutter_application_5> git checkout master
PS D:\flutter\flutter_application_5> git status
On branch master
nothing to commit, working tree clean
PS D:\flutter\flutter_application_5> git push
fatal: The current branch master has no upstream branch.

    git push --set-upstream origin master

PS D:\flutter\flutter_application_5> git push --set-upstream origin master
Counting objects: 100% (101/101), done.
Delta compression using up to 8 threads
Compressing objects: 100% (80/80), done.
Writing objects: 100% (101/101), 67.25 KiB | 1.32 MiB/s, done.
Total 101 (delta 6), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (6/6), done.
remote: Powered by GITEE.COM [GNK-6.2]
To https://gitee.com/yan-ghe/flutter.git
 * [new branch]      master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
PS D:\flutter\flutter_application_5> git push master
fatal: 'master' does not appear to be a git repository
fatal: Could not read from remote repository.

下面的是切换添加分支合并分支

 

 

 

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值