github easily upload your own files


  1. Git must be installed on the system before uploading

  2. Open the terminal in the folder directory you want to upload.

  3. Enter the following command:

    git init
    
    git add 你的文件名字
    
    git commit -m '你对上传文件的描述'
    
    git remote add origin origin 你的仓库网址(不是你的主页) ---第一次使用,后面可以不需要此步骤
    
  4. Then upload it to your own master branch

    git push origin master 
    

    It is recommended to upload to your own master branch for easy management. If you want to upload to your own main branch, you can:

    git push -u origin main
    

Guess you like

Origin blog.csdn.net/Msyusheng/article/details/114290629