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

后端 未结 6 1032
南笙
南笙 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-29 23:30

    All the answers above seems to guide about creating a new repository in git but the question is about adding a folder to existing repo. To do that following steps can be followed.

    • Clone your existing repo using following command: git clone https://github.com/company/our_repo.git
    • Manually take your project folder to the desired location i.e. trunk/bin
    • Now commit and then push in the repo using the commands: git commit -m "message" and git push origin master

提交回复
热议问题