Push existing project into Github

后端 未结 18 892
天涯浪人
天涯浪人 2020-12-04 04:25

I have a folder with my project sources. How I can push this project into Github\'s repository?

I tried using this steps:

  1. I created empty repository o
18条回答
  •  渐次进展
    2020-12-04 05:11

    As of 7/29/2019, Github presents users with the instructions for accomplishing this task when a repo is created, offering several options:

    create a new repository on the command line

    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/user/repo.git
    git push -u origin master
    

    push an existing repository from the command line

    git remote add origin https://github.com/user/repo.git
    git push -u origin master
    

    import code from another repository

    press import button to initialize process.

    For the visual learners out there:

提交回复
热议问题