看了好多帖子,终于在混乱中找到自己适合的方法。。。。。。
自我感觉这个比较简单。 先安装本地git,官方下载地址:http://git-scm.com/download/  根据你自己的系统 下载对应版本。 Administrator@USER-20170816VX MINGW64 /g/project/10guang (桌面要提交的文件,右键选择git bash here)
$ git clone https://github.com/gaobing1252/web-app.git (使用仓库地址生成 web-app 目录,这个目录是在提交文件的里面,然后把文件里面要上传的内容都拷贝到生成的web-app下)
Cloning into 'web-app'...
warning: You appear to have cloned an empty repository. Administrator@USER-20170816VX MINGW64 /g/project/10guang
$ cd web-app (继续命令到web-app,从此处开始) Administrator@USER-20170816VX MINGW64 /g/project/10guang/web-app (master)
$ git add . (注意这个 点 前面有空格的!)
warning: LF will be replaced by CRLF in home/home.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in js/jquery-1.6.2.min.js.
The file will have its original line endings in your working directory. Administrator@USER-20170816VX MINGW64 /g/project/10guang/web-app (master)
$ git commit -m "提交文件"
[master (root-commit) fb02d25] 提交文件
93 files changed, 11020 insertions(+)
create mode 100644 .project
create mode 100644 css/easyLife/easyLife.css
create mode 100644 video/video.html
create mode 100644 "\346\226\207\346\241\243.txt" Administrator@USER-20170816VX MINGW64 /g/project/10guang/web-app (master)
$ git remote add origin git@github.com:gaobing1252/web-app.git (origin 后面的地址是 ssh类型的,不是htttps!)
fatal: remote origin already exists. Administrator@USER-20170816VX MINGW64 /g/project/10guang/web-app (master)
$ git push -u origin master
Username for 'https://github.com': gaobing1252 (输入用户名,之后会弹出密码输入框;验证成功自动上传)
Enumerating objects: 108, done.
Counting objects: 100% (108/108), done.
Delta compression using up to 4 threads.
Compressing objects: 100% (102/102), done.
Writing objects: 100% (108/108), 1.40 MiB | 82.00 KiB/s, done.
Total 108 (delta 8), reused 0 (delta 0)
remote: Resolving deltas: 100% (8/8), done.
To https://github.com/gaobing1252/web-app.git
* [new branch] master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.(成功!)

这个每次上传都要输入账号密码,还有另一种绑定秘钥的。可我生成了几次也没成功。。。。
感觉输入账号密码也不麻烦。

  

最新文章

  1. 解读ASP.NET 5 & MVC6系列(9):日志框架
  2. linux 下UGet闪退问题
  3. box-sizing 属性、min-width属性、max-width属性
  4. Spring中的IOC\DI\AOP等概念的简单学习
  5. 通过Cloudera在hadoop生态圈中安装Sentry服务。
  6. ios retain 与 copy 的区别
  7. js如何使得新打开的窗口居中
  8. 关于c++风格 code style
  9. 关于线程和junit注入失败的问题
  10. 写个重新加载 ocelot 配置的接口
  11. codeforces131D
  12. Angular刷新浏览器 404 问题
  13. IntelliJ Idea 使用笔记
  14. MDX Step by Step 读书笔记(七) - Performing Aggregation 聚合函数之 Sum, Aggregate, Avg
  15. MySQL-记一次备份失败的排查过程
  16. MySQL数据库之part1
  17. MFC 中GetClientRect、ClientToScreen、GetWindow、RectScreenToClient的使用
  18. centos6.5下oracle自动备份删除指定天数的文件
  19. 诡异的小bug 自动生成font标签包裹span标签中的文字
  20. 关于svn和maven结合使用的讨论

热门文章

  1. 关于hibernate的一点心得
  2. JMeter 配置元件之-HTTP Cookie管理器-实现 Cookie 登录
  3. 破解Power Designer 12.5
  4. Orchard Core 文档翻译 (五)自动路由 Autoroute (OrchardCore.Autoroute)
  5. 发送请求获取响应内容(c#)
  6. Black Rock Shooter 题解
  7. 【[JLOI2014]松鼠的新家】
  8. 行云管家 V4.7产品新特性-国际化版本、支持Oracle的数据库审计、主机密码自动修改策略 发布日期:2018-11-22
  9. Window下搭建foundation apps环境
  10. Android学习笔记_40_系统结构 目录结构