between 0 and 1

[Git] Adding an existing project to GitHub (기존 프로젝트 깃허브에 올리기) 본문

Software Development Engineering/Dev.Info.

[Git] Adding an existing project to GitHub (기존 프로젝트 깃허브에 올리기)

devxpert.yoon 2021. 1. 26. 16:37
728x90
반응형

1. create a new repository on Github

 

2. move to existing project and initiate git

  1) touch .gitignore

  2) git init

  3) git add .

  4) git commit -m "any message"

  5) git remote add origin https://github/~~.git

  6) git push origin master

 

3. move to Github

 

4. set default branch to "master"

 

5. delete "main" branch

 

728x90
반응형