How to upload a project to Github

前端 未结 23 1399
误落风尘
误落风尘 2020-11-29 14:04

After checking Upload my project to github I still have no idea how to get a project uploaded to my Git Hub repository.

I\'m new to GitHub and I have no idea what to

23条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 14:50

    This worked for me;

    1- git init
    2- git add .
    3- git commit -m "Add all my files"
    4- git remote add origin https://github.com/USER_NAME/FOLDER_NAME
    5- git pull origin master --allow-unrelated-histories
    6- git push origin master
    

提交回复
热议问题