简易的命令行入门教程:
Git 全局设置:
git config --global user.name “yyyyjinying”
 git config --global user.email “12343343@qq.com”
创建 git 仓库:
mkdir wx-project
 cd wx-project
 git init
 touch README.md
 git add README.md
 git commit -m “first commit”
 git remote add origin https://gitee.com/yyyyjinying/wx-project.git
 git push -u origin “master”
已有仓库
cd existing_git_repo
 git remote add origin https://gitee.com/yyyyjinying/wx-project.git
 git push -u origin “master”
问题
commit or discard the untracked or modified content in submodules)
状态解读:在当前文件夹内部存在其它的.git文件
 解决办法:找到其它的.git文件,删除后重新 add commit
 因为之前的项目有.git,后面又提交到新的仓库,出现了子模块,所有需要将多余的.git文件删除,ls -a && rm -rf .git