分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 教程案例

github 上传步骤

发布时间:2023-09-06 01:55责任编辑:郭大石关键词:github

1.在命令行中,输入“git init”,使Test文件夹加入git管理;
2.输入“git add .”(不要漏了“.”),将Test文件夹全部内容添加到git。
3.输入“git commit -m "first commit"”(“git commit -m "提交信息"”)
4.输入“git remote add origin https://github.com/userName/File.git”(git remote add origin 你自己的https地址),连接你的guthub仓库。
5.输入“git push -u origin master”,上传项目到Github。这里会要求输入Github的账号密码,按要求输入就可以。

在第4步  连接GitHub时遇到 HttpRequestException encountered问题

解决:Github 禁用了TLS v1.0 and v1.1,必须更新Windows的git凭证管理器 
通过此网址https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/

下载之后安装重启git窗口 
$ git remote add origin https://github.com/userName/File.git 
userName是你的用户名File是你自己建的 repository名称 
$ git remote rm origin 

就可以了!!

github 上传步骤

原文地址:https://www.cnblogs.com/jiangkunkun/p/9076519.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved