GIT基础

在命令行上创建新的存储库

echo "# EY_general_python_item" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/CongCongleeee/EY_general_python_item.git
git push -u origin main

从命令行推送现有存储库

git remote add origin https://github.com/CongCongleeee/EY_general_python_item.git
git branch -M main
git push -u origin main
posted @ 2022-06-30 11:02  半个程序猿Cohen_Lee  阅读(24)  评论(0编辑  收藏  举报