Push existing project into Github

后端 未结 18 969
天涯浪人
天涯浪人 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 04:55

    Create a new repository

    git clone 
    cd "repositoryName"
    touch README.md
    git add README.md
    git commit -m "add README"
    git push -u origin master
    

    Existing folder

    cd existing_folder
    git init
    git remote add origin 
    git add .
    git commit -m "Initial commit"
    git push -u origin master
    

    Existing Git repository

    cd existing_repo
    git remote rename origin old-origin
    git remote add origin 
    git push -u origin --all
    git push -u origin --tags
    

提交回复
热议问题