GIT

실행 순서 파일 생성하기 git init touch 0 && git add . && git commit -m "c0" touch 1 && git add . && git commit -m "c1" git branch bugFix git checkout bugFix touch 2 && git add . && git commit -m "c2" git checkout main touch 3 && git add . && git commit -m "c3" touch 4 && git add . && git commit -m "c4" git merge bugFix 결과 (확인은 git log --oneline --graph --all 명령어로!)
git init : GIT 저장소 생성하기 touch 1 : 1이라는 파일 생성하기 git add . : 모든 파일 추가 git add 1 : 1이라는 파일 추가 git commit : 파일들을 저장소에 저장 git commit -m "C0" : "C0" 이라는 메세지 커밋하기 git branch bugFix : bugFix 브랜치 생성하기 git branch -D bugFix : bugFix 브랜치 삭제하기 git checkout bugFix : bugFix 브랜치로 변경하기 git log : 저장된 커밋들을 확인하기 git status : 올라온 파일 상태조회하기 git log --oneline --graph --all : 전체 커밋보기 Git 연습할 수 있는 좋은 사이트! : https://lear..
daxx0ne
'GIT' 태그의 글 목록 (2 Page)