-
Git must be installed on the system before uploading
-
Open the terminal in the folder directory you want to upload.
-
Enter the following command:
git init
git add 你的文件名字
git commit -m '你对上传文件的描述'
git remote add origin origin 你的仓库网址(不是你的主页) ---第一次使用,后面可以不需要此步骤
-
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
github easily upload your own files
Guess you like
Origin blog.csdn.net/Msyusheng/article/details/114290629
Recommended
Ranking