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