往github上提交代码
用户名密码登录
新建仓库
本地git推送代码
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/yizhu3827/test.git
git push -u origin master
方式二:
echo "# pytest_zidonghua" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin git@github.com:yizhu3827/pytest_zidonghua.git git push -u origin main
方式三:
git init
git config --global user.name "张达"
git config --global user.email "1320685524@qq.com"
git add .
git commit -m "first commit 第一次提交"
git remote add origin git@github.com:yizhu3827/pytest_zidonghua.git
git push -u origin master