- git创建仓库
找到刚刚新建仓库的路径,更新到本地,建立本地和git仓库的关联
git clone xxx;
2.本地新建文件,提交到git仓库:
新建文件
git status
git add .
git commit -m"yml文件添加配置内容"
git push origin master
- 修改本地文件名,并推送到git仓库
git mv config-pro.yml config-prod.yml
git status
git commit -m"config-pro.yml文件名修改为config-prod.yml"
git push origin master
4.新建文件并提交到git仓库
git add -u newfolder
git commit -m "changed the foldername"
git push origin master