用git如何上传文件夹到GitHub上

1、在要上传的文件夹内右击打开git bash here

2、克隆远程仓库到本地

    git clone + 你的仓库地址  
    //我输入的是我刚复制自己的
    git clone https://github.com/blowsman/blowsman.github.io  

3、 把需要上传的文件夹放入到远程仓库文件夹内

4、在git 中输入命令上传

    cd  boke     //根据自己的远程仓库名输入
    git init
    git add .
    git commit -m “你的提交信息”
    git push

5、没有报error,上传成功 

posted @ 2022-11-18 18:56  冷风blows  阅读(104)  评论(0)    收藏  举报