或在命令行上创建一个新的存储库
echo“#gittest”>> README.md
git init
git add README.md
git commit -m“first commit”
git remote add origin [email protected]:xuanjian9 / gittest.git
git push -u origin master
或从命令行推送现有存储库
git remote add origin [email protected]:xuanjian9 / gittest.git
git push -u origin master
提交三连
git add .
git commit -m""
git push origin master
警告:
warning: LF will be replaced by CRLF in ......
The file will have its original line endings in your working directory.
解决方案:关闭自动提示即可
git config --global core.autocrlf false