/
*
*author:ablerry
date:2020.04.15
*
/

一、安装

1.0查看一下是否已有安装:git

2.0安装:sudo apt-get install git

二、gitee的使用

1.0注册gitee 或者github

2.0第一个仓库:

·way1:先将仓库clone到本地,修改后再push到码云的仓库仓库

gitee在unbuntu中使用

$ git clone https://gitee.com/用户个性地址/HelloGitee.git #将远程仓库克隆到本地
例如:$ git clone https://gitee.com/ablerry/s3c2440#将远程仓库克隆到本地

$ git config --global user.name “你的名字或昵称”
$ git config --global user.email “你的邮箱”
$ git add . #将当前目录所有文件添加到git暂存区
$ git commit -m “my first commit” #提交并备注提交信息
$ git push origin master #将本地提交推送到远程仓库

·way2:本地初始化一个仓库,设置远程仓库地址后再做push

相关文章:

  • 2021-09-15
  • 2021-11-08
  • 2021-08-08
  • 2021-08-25
  • 2022-12-23
  • 2021-06-15
  • 2021-06-28
  • 2021-05-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案