GitHub:直接上传文件夹

步骤:

如何上传文件夹到github?

可能错误:

git 创建项目第一次上传文档出现fatal: No configured push destination. Either specify the URL from the command-line

解决办法:error: failed to push some refs to ‘https://github.com/xxxx.git’

解决git本地仓库与远程仓库关联出现 failed to push some refs to git的问题

git报错–>! remote rejected master -> master (push declined due to email privacy restrictions)

//先看步骤

git init

git add .

git commit -m "nothing"

//git push
/* error
fatal: No configured push destination 
	......
*/

git remote add origin 'https://github.com/...'

//git push -u origin master
/* error
	......
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/...'
	......
*/

git pull --rebase origin master

git push -u origin master

//success

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值