把小游戏的代码和博客迁移到GitHub上,路径是:https://github.com/GAMTEQ,欢迎访问

以下是使用GITHUB的一些命令

504  cd code

506  mkdir FaithHero

508  cd FaithHero

510  git init

// 拷贝文件到这个目录下,可以包含文件夹

515  git add *

517  git commit -m 'first commit'

518  ls -a

519  pwd

520  git remote add origin https://github.com/GAMTEQ/FaithHero/FaithHero.git

521  git push origin master

// 此处报错,因为https的路径填错了,要把orgin删掉

529  git remote remove origin

530  git remote add origin https://github.com/GAMTEQ/FaithHero.git

531  git push origin master

// 此处又报错,因为github上的版本和本地的不一致,因此要先pull

538  git pull https://github.com/GAMTEQ/FaithHero.git

540  git push origin master

542  history

 
 

Create a new repository on the command line

touch README.md

git initgit add README.md
git commit -m "first commit"
git remote add origin https://github.com/GAMTEQ/Pics.git
git push -u origin master

Push an existing repository from the command line

git remote add origin https://github.com/GAMTEQ/Pics.git

git push -u origin master

如何提交?
比如我修改了Role/Mainrole.cpp文件
git clone https://github.com/GAMTEQ/FaithHero.git 

710  git add Role/Mainrole.cpp

711  git commit -m 'add return to a empty function'

712  git remote add upstream https://github.com/GAMTEQ/FaithHero.git

713  git push upstream master

最新文章

  1. NDK开发-Android Studio+gradle-experimental开发ndk
  2. JDBC连接实例
  3. javascript函数声明方式
  4. tween.js
  5. Sublime Text 3常用快捷键 以及package control 安装
  6. atitit.ajax bp dwr 3.的注解方式配置使用流程总结 VO9o.....
  7. Why isn't there a SendThreadMessage function?
  8. TDBGrideh表头自动排序设置
  9. QT 声明全局变量
  10. C#中文本模板(.tt)
  11. QQ三方登录步骤详解
  12. PAM - 可插拔认证模块
  13. phpStudy apache 启动不了
  14. 已知长度为n的线性表采用顺序结构,写一算法删除该线性表中所有值为item的元素
  15. 最好的Java和Android开发IDE---IntelliJ IDEA使用技巧
  16. 安装 tensorflow 时遇到 OSError: [Errno 1] Operation not permitted 的解决办法
  17. 求平方根C++
  18. 关于Class.getResource和ClassLoader.getResource的路径问题(转)
  19. C++对象模型 多重继承与虚函数表
  20. ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)

热门文章

  1. lintcode 中等题:Single number III 落单的数III
  2. ibaits与spring整合的心得
  3. 日志logger
  4. Spring 操作数据库
  5. Mmap的实现原理和应用
  6. ubuntu下文件压缩/解压缩命令总结
  7. cololection
  8. excel文档
  9. Altium designer总结
  10. 1223. Chernobyl’ Eagle on a Roof(dp)&&poj3783