Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/ouyangtao404/test.git
git push -u origin master
Push an existing repository from the command line
git remote add origin https://github.com/ouyangtao404/test.git
git push -u origin master
=========gitlab========
在本地checkout 我新建的项目a
git clone git://fullpath/a.git
远程添加周报的主干
git remote add b git://fullpath/b.git
将b 的内容抓取到缓冲区中
git fetch b
将b 合并至当前工作区(a )
git merge b
在当前工作区中写周报
提交修改
git add Content.md 可以用. 表示所有文件
git commit 可以用 –a 表示所有文件 git commit –a –m” 这里是日志”
push 到远程
git push (git push 到哪去)
提交merge 即可