Github 提交代码总是记不住,这里记录一下
git add .
git commit -m "XXX commit."
git push origin master
or create a new repository on the command line
echo "# XXX" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/LouHerGetUp/XXX.git
git push -u origin main
or push an existing repository from the command line
git remote add origin https://github.com/LouHerGetUp/XXX.git
git branch -M main
git push -u origin main