首次提交內(nèi)容到github遠(yuǎn)程倉(cāng)庫(kù)
echo "# xxxx" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/xxxx/xxxxxx.git
git push -u origin main
提交整個(gè)項(xiàng)目到遠(yuǎn)程倉(cāng)庫(kù)
git remote add origin https://github.com/xxxx/xxxxx.git
git branch -M main
git push -u origin main
【GIT】解決The file will have its original line endings in your working directory
設(shè)置禁用換行
git config --global core.autocrlf false