How to upload a project to Github

前端 未结 23 1384
误落风尘
误落风尘 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:53

    Steps to upload project to git:-

    step1-open cmd and change current working directory to your project location.

    step2-Initialize your project directory as a Git repository.

    $ git init

    step3-Add files in your local repository.

    $ add .

    step4-Commit the files that you've staged in your local repository.

    $ git commit -m "First commit"

    step5-Copy the remote repository url.

    step6-add the remote repository url as origin in your local location.

    $ git add origin copied_remote_repository_url

    step7-confirm your origin is updated ot not.

    $ git remote show origin

    step8-push the changed to your github repository

    $ git push origin master.

提交回复
热议问题