★★★★GitHub 文件托管使用步骤简单整理

快乐的码农叔叔

共 579字,需浏览 2分钟

 · 2017-08-15

一、准备工作:
首先:到https://github.com下注册账号:1007424128@qq.com/密码
然后,到https://github.com/new创建仓库myRepository

二、安装github客户端:
https://git-for-windows.github.io/

三、添加本地文件到远程服务器:
①git clone https://github.com/shengqianfeng/myRepository.git
②cd myRepository
③将需要托管的代码和文件(如:test目录)放进myRepository
④git add . //将当前文件目录(myRepository)内的全部内容添加进版本管理器
⑤git commit -m "本次提交的说明信息" //提交到本地的版本控制库里
⑥git push -u origin master //将你本地的仓库提交到你的github账号里,此时会要求你输入你的github的账号和密码
⑦查看浏览器:https://github.com/shengqianfeng/myRepository 发现 test目录已经在上边了。

四、删除本地和远程文件:
① git rm text.txt
② git commit -m "delete txt"
③ git push

浏览 6
点赞
评论
收藏
分享

手机扫一扫分享

举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

举报