1. git 시작 기본
git init
> 레포지토리 생성
git clone ~
> ~ git 을 clone
git add (-A)
> 현재 디렉토리에 있는 update 된 파일을 모두 staging 영역으로 보냄
> -A 옵션 사용시 수정된 파일 전부를 staging 영역으로 보냄
git status
> 현재 add 내역 확인
git commit -m "aa"
> "aa" 라는 commit 메세지 내용으로 commit
git push
> 수정된 내용 git 으로 동기화
2. submodule 사용법
1) submodule directory 에서 작업 후 push 까지 진행 (add - commit -push)
a. submodule 을 처음 넣을땐, base 로 가서 git submodule add (submodule git url) 로 추가
b. 똑같이 add- commit- push
2) base 에서 submodule 에 대해 add- commit- push
3) status 에 submodule 부분이 뜨지 않을 경우 git submodule update --remote --recursive 로 업데이트
4) 만약 브런치가 제대로 chekcout 되지 않은 거라면 git submodule foreach git checkout master 로 checkout 필요
3. tag 사용법
1) git log 로 commit hash 확인
2) git tag 'tag-name' commit-has 로 태그 설정
3) git push 'tag-name' 하여 push
4) git web 에서 tag 를 이용하여 releases 올리고, whl 파일 등 추가
'그 외 > git' 카테고리의 다른 글
git branch 오류 (0) | 2024.04.15 |
---|---|
git 패스워드 저장 (0) | 2024.04.15 |