How to upload a project to Github

前端 未结 23 1367
误落风尘
误落风尘 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 15:01

    Follow these steps to upload your project to Github

    1) git init

    2) git add .

    3) git commit -m "Add all my files"

    4) git remote add origin https://github.com/yourusername/your-repo-name.git

    Upload of project from scratch require git pull origin master.

    5) git pull origin master

    6) git push origin master

    If any problem occurs in pushing use git push --force origin master

提交回复
热议问题