git 명령어
계속 update 예정
------------------------------------local git------------------------------------
git repository 만들기 : git init <repository명>
bare git 만들기 : git clone --bare <존재하는 repositroy명>
branch 삭제 : git branch -D <삭제할 branch명>
tag 보기 : git tag
tag 만들기 : (*lightweight방식) : git tag <만들 tag이름>
(*annotated 방식) : git tag -a <만들 tag이름> -m "<메세지내용>"
- Lightweight: 특정 커밋에 tag
- Annotated: 만든 사람, 이메일, 날짜, 메시지가 담긴 tag 커밋 생성
tag 삭제 : git tag -D <삭제할 tag명>
empty commit 만들기 : git commit --allow-empty -m "<메세지 내용>"
------------------------------------remote git--------------------------------
local에서 생성한 branch를 push : git push <remote git이름, 보통 origin> <push할 branch이름>
remote branch 삭제 : git push <remote git이름> :<삭제할 branch이름>
혹은 git push <remote git이름> --delete <삭제할 branch이름>
local에서 생성한 모든 tag를 push : git push <remote git이름> --tags
local에서 생선한 특정 tag를 push : git push <remote git이름> <특정tag 이름>
remote tag삭제 : git push <remote git이름> :<삭제할 tag이름>