<git 함께 작업 workflow>

git init -기존 디렉토리를 Git Repository로 변환(Local Repository 생성) git remote add -Local Repository를 Remote Repository와 연결하여 원격으로 관리 -내 Github에 Repository 생성하고 git remote add origin -다른 사람과 연결 > git remote add pair git remote -v -Local Repository와 연결된 모든 Remote Repository 목록 확인 pull -페어가 master 브랜치에 작업한 코드를 올려서 확인하고 싶을때 Remote Repository의 해당 branch 내용을 Local Repository로 가져오기 -받아오는 내용은 자동으로 병합(merge) -git pull pair master confli

2022년 5월 1일
·
0개의 댓글
·

<git 혼자작업 workflow>

Fork -Remote에 있는 다른 Repository에서 Fork를 해서 Remote에 있는 내 Repository에 가지고 오기 -우측 상단 Fork 클릭 > 나의 유저네임 클릭 Clone -해당 Repository를 내 컴퓨터(Local Repository)로 가져오기 -git clone Status -내 로컬의 staging area, untracked files 목록 확인 -git status Restore -commit 되지 않은 Local Repository의 변경사항을 취소 -git restore Add -Untracked files를 Staging area로 추가, commit 할 수 있는 상태로 만들기 -git add / git add . (모든 파일 add) Commit -변경사항 저장하기 -git commit -m '커밋메세지' Reset -아

2022년 5월 1일
·
0개의 댓글
·