你不知道的git操作(三)
2019-07-13 本文已影响35人
是萌萌哎
下面放大招了,git的查看,推送和拉取操作
首先我们自己在github上建一个项目:


这样就可以了,然后回调到这样一个界面:

我们把ssh这个地址粘出来,回到命令行窗口
创建一个工作空间 :mkdir workspace ,cd workspace
然后我们要克隆这个远程创建的项目到我们本地:
git clone 我们刚刚的地址
克隆成功后,我们ll看一下
然后进入这个项目:


创建一个txt文件,vim命令和linux的一样使用
然后我们把它推动到远程的github上面:
git commit -m "添加你本次提交的注释,填写一些信息"
然后 git push 就推上去了
可以去github上看一次
拉取的话我们就 git pull