首页 > Web开发 > 详细

实现使用 Git 命令将电脑上的文件上传到 Github

时间:2018-08-30 19:41:26      阅读:194      评论:0      收藏:0      [点我收藏+]
1、在电脑上安装 Windows 版 Git
下载地址:https://git-scm.com/downloads
2、使用 Git GUI 生成 SSH Key
技术分享图片
技术分享图片
3、将 SSH Key 添加到 Github
技术分享图片
4、在电脑上创建文件夹,使用 Git Shell 初始化

git init
git remote add origin git@github.com:huhaiqng/Oracle.git

技术分享图片
5、拉文件

git pull git@github.com:huhaiqng/Oracle.git

技术分享图片
6、将新增修改的文件上传

git add .
git commit -m "提交"
git push -u origin master

实现使用 Git 命令将电脑上的文件上传到 Github

原文:http://blog.51cto.com/linux10000/2166594

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!