常用命令
初始化仓库
git init
添加指定文件 到 暂存区
git add .
解决 换行符不一致导致的提示
warning: LF will be replaced by CRLF in a.txt.
The file will have its original line endings in your working directory.
解决方式
git config --global core.autocrlf false
git status
1. 红色表示在工作区。
2.绿色表示在暂存区。
3. 没有任何显示代表所有文件位于版本区。
git commit -m 'xxx' 提交暂存区所有文件到版本区
我是Eric,手机号是13522679763

浙公网安备 33010602011771号