git常用命令
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
gitclonegit://fullpath/a.git
远程添加周报的主干
git remote add b git://fullpath/b.git将b的内容抓取到缓冲区中
gitfetchb
将b合并至当前工作区(a)
gitmergeb
在当前工作区中写周报
提交修改
gitaddContent.md可以用.表示所有文件
gitcommit可以用–a表示所有文件gitcommit–a–m”这里是日志”
push到远程
gitpush(gitpush到哪去)
提交merge即可
相关推荐
formula 2020-11-12
huhongfei 2020-11-05
乾坤一碼農 2020-10-27
liumengyanysu 2020-10-22
E哥的aws认证攻略 2020-10-15
tianyafengxin 2020-10-08
guying 2020-10-05
好脑筋不如烂笔头 2020-09-17
nebulali 2020-09-11
佛系程序员J 2020-09-15
fenggit 2020-09-15
JustHaveTry 2020-09-11
兄dei努力赚钱吧 2020-09-06
IngeniousIT 2020-08-25
liumengyanysu 2020-08-17
guying 2020-08-16