根据github官方的步骤,
1.初始化一个新的仓库
echo "# cryptoscaner" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/chenyu1024/cryptoscaner.git
git push -u origin main
2.初始化一个非空文件夹
git remote add origin https://github.com/chenyu1024/cryptoscaner.git
git branch -M main
git push -u origin main
GitHub 仓库与非空文件夹初始化教程
本文档提供了初始化GitHub仓库和非空文件夹的详细步骤。首先,通过创建README.md文件初始化仓库,然后使用git进行一系列操作,包括初始化、添加文件、提交、设置远程仓库及推送。对于非空文件夹,同样需要设置远程仓库并推送,但需在已有项目基础上操作。
913

被折叠的 条评论
为什么被折叠?



