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