git安装网址:https://git-scm.com
如果您要将本地文件夹上传到名为"compiling"的GitHub仓库,可以按照以下步骤进行操作:
1.安装无脑下一步
2.cd到想上传的文件夹的上一级目录
2.初始化Git仓库:git init
设置分支:git branch 用户名
进入分支:git checkout 用户名
3.设置身份信息
git config --global user.email “you@example.com”
git config --global user.name “Your Name”
4.将整个文件夹添加到Git仓库:git add my-folder(my-folder 为想上传的文件夹名)
5.提交文件夹到Git仓库:git commit -m “Add my-folder”(my-folder 为想上传的文件夹名。说明上传内容)
6.关联本地仓库与GitHub仓库:
git remote add origin https://github.com/sssssssssssss/compiling.git(设置origin 变量)
7.将本地提交推送到GitHub仓库:git push -u origin master
8.在弹出的页面中输入您的GitHub用户名和密码,确认推送。