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

后端 未结 6 1025
南笙
南笙 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:39

    Open your Terminal, access to this folder and write:

    git init
    git add .
    git commit -m "my commit"
    git remote set-url origin git@github.com:username/repo.git
    git push origin master
    

提交回复
热议问题