Git教程_1
Git快速上手
Git是一个分布式的版本控制系统,类似于多人可共同修改文件的一个平台
1 | #Centos上下载源文件后解压,进入文件夹 |
即安装成功
配置Git
1 | #创建一个文件夹来作为Git仓库 |
使用Git
1 | #将在创建好的git目录下的文件添加至仓库 |
$ git status
On branch master
Changes not staged for commit:
(use “git add…” to update what will be committed)
(use “git checkout —…” to discard changes in working directory) modified: readme.txt
no changes added to commit (use “git add” and/or “git commit -a”)
1 | #查看修改内容 |