How to add my current project to an already existing GitHub repository

后端 未结 6 1024
南笙
南笙 2021-01-29 23:01

I\'m very new to Git. I\'ve been searching for an answer, but I couldn\'t find one.

In my computer I have a project folder like this:

project_a
--some_fo         


        
6条回答
  •  说谎
    说谎 (楼主)
    2021-01-29 23:36

    1. first create a git repostry.
    2. second open git bash in  existing or uploading project.
    3. perform git init 
    4. git add .
    5. git commit -m "print message"
    6. git remote add github
    7. git remote -v
    8. git push github master
    

    OR

    git push origin master
    

    if you get any error, you may use it

    git push -f origin master
    

提交回复
热议问题