본문 바로가기
카테고리 없음

git & github 협업툴 익히기

by 공.대.남 2023. 1. 17.
반응형

#환경변수 설정

git config --list

git config --global user.name “username”

git config --global user.email “useremail”

git config --global core.editor "vim”

git config --global core.pager “cat”

 

git add “file”

git commit

    feat/fix/docs/test/conf/build/ci .. 등 명시

git setting > Personal access tokens 설정

    copy token

git push origin main

    token access

 

git, github 협업하기

브랜치 생성 : git branch “브랜치명”

브랜치 옮기기 : git switch/checkout “브랜치명”

브랜치에서 환경개발해야함(ex nodejs > package.json)

git main branch 이동후 merge : git merge “merge할 브랜치명”

merge 후 branch 삭제 : git branch -D “삭제할 브랜치명”

728x90
반응형

댓글