[Git] 이미 개발하고 있는 내용을 레포에 올릴 때

yeahcold·2024년 9월 10일
0

서론

개발 초기부터 github 주소를 가져와서 개발하는 경우도 있지만, 이미 개발하고 있는 내용을 레포와 연결해야하는 상황을 자주 마주할 것이다. 어떻게 해야할까?

How to solve?

  1. git init을 통해 깃 초기화를 시켜준다.
  1. git remote add origin https://github.com/YourUsername/YourRepository.git
    Stage files:
  1. 스테이지에 올릴 파일들을 add해준다.
    git add .
  1. 커밋해준다
    git commit -m "Initial commit"
  1. 깃헙에 푸시!
    git push -u origin master
profile
Software Engineer

0개의 댓글