git的使用

1.git说明

GIT不仅仅是个版本控制系统,它也是个内容管理系统(CMS),工作管理系统等

2.git 分为以下几个区

Workspace:工作区
Index/Stage:暂存区,也叫索引
Repository:仓库区(或本地仓库),也存储库
Remote:远程仓库

3.git入门

  • 创建一个仓库(repository)

  mkdir git_test

       cd git_test

       git init

  • 添加文件

  git add file_name

  • 提交版本

  git commit -m "add file"

  • 推送到服务器

  git push 

  • 更新

  git pull

原文地址:https://www.cnblogs.com/y15821933792/p/8306967.html