github shell

When i open my shell , i find that the interface in the Win10 is more cool than Win7,haha , everything is growing include ourselves , ok ,let us study the method of using the shell!

Firstly , open the shell please , coding the command:git help ,than you could see the following things.




now translate them for each:

1.登录

在第一次使用的时候需要配置一些信息,你可以输入如下命令:

git config --global user.name "xxx"   (xxx=yourID name)

git config --global user.email "xxxxx" (xxxxx= your email when you enroll the git)

一般情况下,以后再次使用就不用再配置咯。

2.创建线上和线下的联系

(1)打开网页版(线上)github,创建一个新的仓库,比如文件名叫做text ,注意下创建新仓库后的地址,后面会用到
(2)在本地(线下)创建仓库,仓库的名字要与线上的那个相同,比如放在D://text
  cd d:
  mkdir text
  cd text
  git init  //初始化仓库
  touch README //建立一个README文件,必有项
  给文件添加一些内容,然后保存
  git commit -m "text commit" //双引号中的内容是描述,必填项
  git remote add origin https://github.com/xxx/text.git  //后面的链接就是之前线上建立的新仓库的地址
  这个命令有时会出现问题,如提示:
  
  解决办法就是先输入: git remote rm origin 然后再次输入即可
  git push origin master

  到此我们就完成了在线上和线下创建版本库并且上传文件的过程,吼吼。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值