常用命令

初始化仓库 

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' 提交暂存区所有文件到版本区

 

posted @ 2021-04-26 22:20  13522679763-任国强  阅读(33)  评论(0)    收藏  举报