如何使用git上传文件到Github远程仓库(完整详细流程) |
您所在的位置:网站首页 › github上传文件到别人的仓库上 › 如何使用git上传文件到Github远程仓库(完整详细流程) |
文章目录
1.在电脑上下载Git2.配置Git3.上传Github仓库
1.在电脑上下载Git
git官网下载:Git - Downloads (git-scm.com) 下载后安装即可。 2.配置Git鼠标右键进入Git命令行 (1)设置用户名和设置用户账号(需要是自己的注册Github账号) git config --global user.name "user_name"#(自己的用户名) git config --global user.email "[email protected]"(自己Github账号邮箱)(2) 配置免密登录(自己Github账号邮箱) ssh-keygen -t ed25519 -C "[email protected]" 或 ssh-keygen -t rsa -b 4096 -C "[email protected]"直接回车 然后在C:\Users\【用户名】\.ssh\id_rsa.pub中使用记事本打开id_rsa.pub文件,全选复制里面的内容,然后打开自己的Github 新建一个仓库 这里面也有上传文件的示例 这里使用本地Git提交,步骤如下:
|
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |