How to upload folders on GitHub

前端 未结 3 1517
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 06:32

How can I upload folders to GitHub? I have all of my code in a folder, containing 98 files, on my desktop. I know how to upload files, but it there a way to upload the entire

3条回答
  •  清歌不尽
    2021-02-02 06:57

    You can also use the command line, Change directory where your folder is located then type the following :

         git init
         git add   
         git commit -m "Your message about the commit"
         git remote add origin https://github.com/yourUsername/yourRepository.git
         git push -u origin master
         git push origin master  
    

提交回复
热议问题