1、安装git
sudo apt-get install git
2、创建git仓库(版本库)
git init
3、提交文件
git add <file> 将文件提交到暂存区,可以提交多次
git commit -m "注释" 将文件提交到仓库
4、git status 查看提交状态
5、git log 查看提交日志
1、安装git
sudo apt-get install git
2、创建git仓库(版本库)
git init
3、提交文件
git add <file> 将文件提交到暂存区,可以提交多次
git commit -m "注释" 将文件提交到仓库
4、git status 查看提交状态
5、git log 查看提交日志