git首次提交

it2022-05-05  149

1.初始化git:$ git init

2.添加:$ git add .  (如果出现warning: LF will be replaced by CRLF in lib/one.dart.                                    The file will have its original line endings in your working directory 执行步骤 2.1)

2.1:git config --global core.autocrlf false

3.绑定邮箱:$ git config --global user.email "me@.com.cn"

4.绑定姓名:$ git config --global user.name "me"

5.commit:$ git commit -m "first commit"

6.关联git仓库:$ git remote add origin http:***.git

7.提交到仓库:$ git push origin master  


最新回复(0)