개발/etc

[Git] Git Bash 로 hub에 push하기 (Git hub에 내 코드 올리기)

Dane.Kim 2021. 10. 17.
  1. 업로드할 폴더 우클릭 후 git bash here
  2. git init → 엔터
  3. git remote add origin 레파지토리 링크
  4. git status → 엔터
  5. git add ./원하는폴더명 → 엔터
  6. git config --global user.email "이메일주소" → 엔터
  7. git config --global user.name "이름" → 엔터
  8. git commit -m "올릴 코드의 이름"
  9. git push origin master → 엔터
  10. github 로그인 하면 완료

Git 브랜치 push 방법

  1. git init
  2. git remote add origin https://github.com/~.git
  3. git pull origin 브랜치이름
  4. git checkout -b 브랜치이름
  5. git add ./ 원하는 폴더명
  6. git commit -m "올릴 코드의 이름"
  7. git push origin 브랜치이름

댓글